summaryrefslogtreecommitdiff
path: root/pcap.3pcap.in
diff options
context:
space:
mode:
Diffstat (limited to 'pcap.3pcap.in')
-rw-r--r--pcap.3pcap.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcap.3pcap.in b/pcap.3pcap.in
index 80101403..b2db565e 100644
--- a/pcap.3pcap.in
+++ b/pcap.3pcap.in
@@ -41,6 +41,10 @@ other interface on which the capture should be done, call
.BR pcap_create (),
set the appropriate options on the handle, and then activate it with
.BR pcap_activate ().
+If
+.BR pcap_activate ()
+fails, the handle should be closed with
+.BR pcap_close() .
.PP
To obtain a list of devices that can be opened for a live capture, call
.BR pcap_findalldevs ();