diff options
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 1d1d0be4268..b66db3ed072 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -462,7 +462,7 @@ main(argc, argv) if (source) { (void) memset(&from, 0, sizeof(struct sockaddr)); from.sin_family = AF_INET; - if (inet_aton(source, &from.sin_addr) != 0) + if (inet_aton(source, &from.sin_addr) == 0) errx(1, "unknown host %s", source); ip->ip_src = from.sin_addr; #ifndef IP_HDRINCL |