summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-rpcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index 5b45b829..c85acc2c 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -2075,6 +2075,8 @@ static int rpcap_doauth(SOCKET sockctrl, SSL *ssl, uint8_t *ver, struct pcap_rmt
if (plen < sizeof(struct rpcap_authreply))
{
/* No - discard it and fail. */
+ snprintf(errbuf, PCAP_ERRBUF_SIZE,
+ "Authenticaton reply from server is too short");
(void)rpcap_discard(sockctrl, ssl, plen, NULL);
return -1;
}