summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 23:30:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-29 23:30:53 +0000
commite0316af252e4bfb4e4e9d2933c39f839ac6011ed (patch)
treecdbea5a0cd8a891059f6eece92570495650cf10c
parent0b45702665ab1a9c4aae1138c52e0f00f022e7e1 (diff)
inet_ntoa backwards for -s; netbsd pr#2579; peter@wonderland.org
-rw-r--r--usr.sbin/traceroute/traceroute.c2
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