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.
  • Loading branch information
guyharris committed Aug 9, 2024
1 parent 07ca0b8 commit aa3af1d
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 @@ -238,7 +238,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 aa3af1d

Please sign in to comment.