diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-10 23:55:49 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-10 23:55:49 -0800 |
commit | 6558eb26bd8ac5a0bd58eca8a7b29b56d3dcea62 (patch) | |
tree | 69b43c0ae8bc7a47822fdd24a142f11a9e92c359 /rpcap-protocol.c | |
parent | bb018c1cb6270b351088afe8a2b1d4b94cdd2755 (diff) |
In the server, don't complain if the client reset the connection.
If the client flakes out for whatever reason, including exiting, that's
not a problem that the server needs to log.
Diffstat (limited to 'rpcap-protocol.c')
-rw-r--r-- | rpcap-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpcap-protocol.c b/rpcap-protocol.c index 39658aa6..607d5bd2 100644 --- a/rpcap-protocol.c +++ b/rpcap-protocol.c @@ -99,7 +99,7 @@ rpcap_senderror(SOCKET sock, uint8 ver, unsigned short errcode, char *error, cha RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE)) return -1; - if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE)) + if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) return -1; return 0; |