diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-05-23 16:44:13 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-05-23 16:44:13 +0000 |
commit | 9893ff78e44f45e4709ee64322ec163d5213e237 (patch) | |
tree | e9c7413db9256ef8693aa2c1caaacb8524347fe5 /sbin | |
parent | 40af959da8cb9f86c4d4f1cec41369ce54843572 (diff) |
missed rtm_hdrlen conversion in one place
ok claudio@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/show.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c index d2362147377..f8bd370c1dd 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.77 2009/04/28 12:09:35 michele Exp $ */ +/* $OpenBSD: show.c,v 1.78 2009/05/23 16:44:12 chris Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -278,7 +278,7 @@ void p_rtentry(struct rt_msghdr *rtm) { static int old_af = -1; - struct sockaddr *sa = (struct sockaddr *)(rtm + 1); + struct sockaddr *sa = (struct sockaddr *)((char *)rtm + rtm->rtm_hdrlen); struct sockaddr *mask, *rti_info[RTAX_MAX]; char ifbuf[IF_NAMESIZE]; |