diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-07-16 16:23:31 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-07-16 16:23:31 +0000 |
commit | 91ecc2334f2a0de5eb3fb2b6cc97c2948e9533f9 (patch) | |
tree | 4d4712ddf3b3953e9bee3f69c853b4cb68c998a9 /dumpcap.c | |
parent | bb058987208733aaaf5aaeac74b0fadcbcd9918c (diff) | |
download | wireshark-91ecc2334f2a0de5eb3fb2b6cc97c2948e9533f9.tar.gz |
"man inet_pton" only says that it returns a negative value, zero or a postive value, and not specifically -1, 0, or 1, so even though we know that's what wsutil's inet_pton will return, we shouldn't test against those exact values.
svn path=/trunk/; revision=50670
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1845,7 +1845,7 @@ cap_open_socket(char *pipename, pcap_options *pcap_opts, char *errmsg, int errms strncpy(buf, sockname, len); buf[len] = '\0'; - if (!inet_pton(AF_INET, buf, &sa.sin_addr)) { + if (inet_pton(AF_INET, buf, &sa.sin_addr) <= 0) { goto fail_invalid; } |