diff options
-rw-r--r-- | econproxy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/econproxy.c b/econproxy.c index ea20f54..e3fd9b8 100644 --- a/econproxy.c +++ b/econproxy.c @@ -115,6 +115,12 @@ read_packet(struct ep *ep) return -1; } + /* Keepalive is an irregular if datasize > 0: + * the regular field recordCount is 1, + * without actually having one. */ + if (ep->ehdr.commandID == E_CMD_KEEPALIVE) + return 0; + if (ep->ecmd.recordCount > 0) { if (ep->ecmd.recordCount > 1) { fprintf(stderr, "read_packet: did not expect a" |