aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index a126633e..67b3dcfb 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -2333,7 +2333,9 @@ pcap_t *pcap_open_rpcap(const char *source, int snaplen, int flags, int read_tim
result = pcap_opensource_remote(fp, auth);
- if (result != 0) {
+ if (result != 0)
+ {
+ strcpy(errbuf, fp->errbuf);
pcap_close(fp);
return NULL;
}