From: Guy Harris Date: Sat, 12 Jan 2019 22:46:22 +0000 (-0800) Subject: Pass the address of the error buffer. X-Git-Tag: libpcap-1.10-bp~618 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a4b43033f85afe0eacd237d87d4e07bc16e6598d Pass the address of the error buffer. --- diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c index 12e9f0b1..eaf276e1 100644 --- a/rpcapd/daemon.c +++ b/rpcapd/daemon.c @@ -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);