Skip to content

Commit

Permalink
pcap_findalldevs(3PCAP): *alldevsp is set to NULL on error. [skip ci]
Browse files Browse the repository at this point in the history
I.e., if pcap_findalldevs() fails, there is no partically-constructed
list that its caller needs to free.

Ping #1211; this fixes the documentation to match the way the code
has worked insce pcap_findalldevs() was added as an API.

(cherry picked from commit aa3af1d)
  • Loading branch information
guyharris committed Aug 9, 2024
1 parent 27e1876 commit 505b1e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pcap_findalldevs.3pcap
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ returned in that case. If
.B PCAP_ERROR
is returned,
.I errbuf
is filled in with an appropriate error message.
is filled in with an appropriate error message,
and the pointer pointed to by
.I alldevsp
is set to
.BR NULL .
.SH BACKWARD COMPATIBILITY
.PP
The
Expand Down

0 comments on commit 505b1e6

Please sign in to comment.