diff options
| author | liuxueli <[email protected]> | 2020-09-16 19:28:15 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-09-16 19:28:15 +0800 |
| commit | 810857dc122186006d158160a92a6c9103a8e332 (patch) | |
| tree | ab4de4514c20a54465f30f744c282d97cc1e332d /src | |
| parent | c068db5eee3df4309149539432f40aec563f6293 (diff) | |
修正返回值
Diffstat (limited to 'src')
| -rw-r--r-- | src/gquic_process.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/gquic_process.c b/src/gquic_process.c index f7176b5..91ca9e1 100644 --- a/src/gquic_process.c +++ b/src/gquic_process.c @@ -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) |
