summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-16 16:23:31 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-07-16 16:23:31 +0000
commit91ecc2334f2a0de5eb3fb2b6cc97c2948e9533f9 (patch)
tree4d4712ddf3b3953e9bee3f69c853b4cb68c998a9 /dumpcap.c
parentbb058987208733aaaf5aaeac74b0fadcbcd9918c (diff)
downloadwireshark-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index b8e2795b40..a00fa62b52 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -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;
}