From f7fc5c91540f292e7ff89f2d4f9a676951ea3803 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Fri, 18 Mar 2016 15:06:50 +0000 Subject: o No need to resolve a mask that we get with ICMP_MASKREPLY, pass it directly to inet_ntoa(3). --- sbin/ping/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/ping') diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index a5f860271383..5b276fcbefcc 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1201,7 +1201,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from, struct timeval *tv) if (options & F_MASK) { /* Just prentend this cast isn't ugly */ (void)printf(" mask=%s", - pr_addr(*(struct in_addr *)&(icp->icmp_mask))); + inet_ntoa(*(struct in_addr *)&(icp->icmp_mask))); } if (options & F_TIME) { (void)printf(" tso=%s", pr_ntime(icp->icmp_otime)); -- cgit v1.2.3