summaryrefslogtreecommitdiff
path: root/dpi/cookies.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpi/cookies.c')
-rw-r--r--dpi/cookies.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c
index 34cb222b..3cd3237c 100644
--- a/dpi/cookies.c
+++ b/dpi/cookies.c
@@ -1482,14 +1482,11 @@ int main(void) {
while (1) {
code = 1;
- if ((buf = a_Dpip_dsh_read_token(sh)) != NULL) {
+ if ((buf = a_Dpip_dsh_read_token(sh, 1)) != NULL) {
/* Let's see what we fished... */
_MSG(" buf = {%s}\n", buf);
code = srv_parse_tok(sh, client, buf);
dFree(buf);
- } else if (sh->status == DPIP_EAGAIN) {
- /* may reach here when the tag size is larger than kernel buffer */
- continue;
}
_MSG(" code = %d %s\n", code, code == 1 ? "EXIT" : "BREAK");