diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-06-05 22:40:25 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2009-06-05 22:40:25 +0000 |
commit | 4e9d97f9bd4bf6ffea35c2fc1c968806bab268a6 (patch) | |
tree | 8dd99e6c5ab1c033916b198c7678a4a083f2aa9e /usr.sbin/ppp | |
parent | 637897ed02de73e77d8087fcaf4bb06dfca62df0 (diff) |
rtm->rtm_hdrlen conversion
ok claudio@, henning@
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ppp/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/route.c b/usr.sbin/ppp/ppp/route.c index 703842d0389..f66b6dad2d2 100644 --- a/usr.sbin/ppp/ppp/route.c +++ b/usr.sbin/ppp/ppp/route.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: route.c,v 1.35 2007/09/02 15:19:39 deraadt Exp $ + * $OpenBSD: route.c,v 1.36 2009/06/05 22:40:24 chris Exp $ */ #include <sys/param.h> @@ -317,7 +317,7 @@ route_ParseHdr(struct rt_msghdr *rtm, struct sockaddr *sa[RTAX_MAX]) char *wp; int rtax; - wp = (char *)(rtm + 1); + wp = (char *)((char *)rtm + rtm->rtm_hdrlen); for (rtax = 0; rtax < RTAX_MAX; rtax++) if (rtm->rtm_addrs & (1 << rtax)) { |