]> The Tcpdump Group git mirrors - libpcap/commitdiff
Pass the address of the error buffer.
authorGuy Harris <[email protected]>
Sat, 12 Jan 2019 22:46:22 +0000 (14:46 -0800)
committerGuy Harris <[email protected]>
Sat, 12 Jan 2019 22:46:22 +0000 (14:46 -0800)
rpcapd/daemon.c

index 12e9f0b1f33f4f1bbde8b5616c257df6ff552f68..eaf276e1558c0b35d391c4b11fac44e5b8bbc14a 100644 (file)
@@ -286,7 +286,7 @@ daemon_serviceloop(SOCKET sockctrl, int isactive, char *passiveClients,
                        //
                        if (rpcap_senderror(sockctrl, NULL, header.ver,
                            PCAP_ERR_AUTH, "TLS is required by this server",
-                           "") == -1)
+                           errbuf) == -1)
                        {
                                // That failed; log a message and give up.
                                rpcapd_log(LOGPRIO_ERROR, "Send to client failed: %s", errbuf);