]> The Tcpdump Group git mirrors - libpcap/commitdiff
totread was not updated after a read 580/head
authorjromanr <[email protected]>
Mon, 15 May 2017 09:40:49 +0000 (11:40 +0200)
committerjromanr <[email protected]>
Mon, 15 May 2017 09:40:49 +0000 (11:40 +0200)
rpcapd/daemon.c

index ad43682ca2bd9bb1de572caf65bb3170e7647131..6a4faf4bd5f36a5b43c09b49c1b0e98a0e1ed846 100755 (executable)
@@ -566,7 +566,7 @@ int daemon_checkauth(SOCKET sockctrl, int nullAuthAllowed, char *errbuf)
                                retcode = -1;
                                goto error;
                        }
-                       totread = nread;
+                       totread += nread;
                        nread = sock_recv(sockctrl, string2, len2,
                            SOCK_RECEIVEALL_YES, errbuf, PCAP_ERRBUF_SIZE);
                        if (nread == -1)