]> The Tcpdump Group git mirrors - libpcap/commitdiff
Merge pull request #580 from jromanr/master
authorGuy Harris <[email protected]>
Mon, 15 May 2017 18:30:16 +0000 (11:30 -0700)
committerGitHub <[email protected]>
Mon, 15 May 2017 18:30:16 +0000 (11:30 -0700)
rpcapd: The remote capture does not start when the remote client uses the non null authentication procedure.

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)