修正返回值

This commit is contained in:
liuxueli
2020-09-16 19:28:15 +08:00
parent c068db5eee
commit 810857dc12

View File

@@ -61,23 +61,6 @@ char quic_callPlugins(struct streaminfo *pstream, struct _quic_context *_context
app_state=APP_STATE_DROPPKT;
}
if(state&PROT_STATE_DROPME)
{
if(app_state&APP_STATE_DROPPKT)
{
app_state|=APP_STATE_DROPME;
}
else
{
app_state=APP_STATE_DROPME;
}
}
if(state&PROT_STATE_GIVEME)
{
app_state=APP_STATE_GIVEME;
}
return app_state;
}
@@ -818,7 +801,7 @@ int gquic_proc_unencrypt(struct streaminfo *pstream, struct _quic_context* _cont
}
else
{
return -1;
return APP_STATE_GIVEME;
}
break;
}
@@ -852,7 +835,7 @@ int parse_gquic_Q046(struct streaminfo *pstream, struct _quic_context* _context,
}
else
{
return 0; //todo
return APP_STATE_GIVEME; //todo
}
if(ret&APP_STATE_DROPME || ret&APP_STATE_DROPPKT)