From 6558eb26bd8ac5a0bd58eca8a7b29b56d3dcea62 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 10 Nov 2017 23:55:49 -0800 Subject: 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. --- rpcap-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpcap-protocol.c') 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; -- cgit v1.2.1