summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/show.c
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2009-05-23 18:28:46 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2009-05-23 18:28:46 +0000
commitcbfb8fd6e23d6a411567bd68d3445807b013d273 (patch)
tree9f33375147c1882570dc5b1fa73228f658b8733f /usr.bin/netstat/show.c
parente22a05e9c07a0287f22aedc80ea76644961a9b35 (diff)
typo
Diffstat (limited to 'usr.bin/netstat/show.c')
-rw-r--r--usr.bin/netstat/show.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/show.c b/usr.bin/netstat/show.c
index d1863c44add..fb75b1aa76e 100644
--- a/usr.bin/netstat/show.c
+++ b/usr.bin/netstat/show.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: show.c,v 1.22 2009/05/23 17:03:06 chris Exp $ */
+/* $OpenBSD: show.c,v 1.23 2009/05/23 18:28:45 chris Exp $ */
/* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */
/*
@@ -150,7 +150,7 @@ p_rttables(int af, u_int tableid)
rtm = (struct rt_msghdr *)next;
if (rtm->rtm_version != RTM_VERSION)
continue;
- sa = (struct sockaddr *)(next + rtm->hdrlen);
+ sa = (struct sockaddr *)(next + rtm->rtm_hdrlen);
if (af != AF_UNSPEC && sa->sa_family != af)
continue;
p_rtentry(rtm);