From e0316af252e4bfb4e4e9d2933c39f839ac6011ed Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 29 Jun 1996 23:30:53 +0000 Subject: inet_ntoa backwards for -s; netbsd pr#2579; peter@wonderland.org --- usr.sbin/traceroute/traceroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') 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 -- cgit v1.2.3