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 /sbin | |
parent | 637897ed02de73e77d8087fcaf4bb06dfca62df0 (diff) |
rtm->rtm_hdrlen conversion
ok claudio@, henning@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/util.c b/sbin/isakmpd/util.c index 5ca25daee32..95cc54ca077 100644 --- a/sbin/isakmpd/util.c +++ b/sbin/isakmpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.63 2006/11/24 13:52:14 reyk Exp $ */ +/* $OpenBSD: util.c,v 1.64 2009/06/05 22:40:23 chris Exp $ */ /* $EOM: util.c,v 1.23 2000/11/23 12:22:08 niklas Exp $ */ /* @@ -277,7 +277,7 @@ text2sockaddr(char *address, char *port, struct sockaddr **sa, sa_family_t af, rtm->rtm_seq = seq = arc4random(); /* default destination */ - sa2 = (struct sockaddr *)(rtm + 1); + sa2 = (struct sockaddr *)((char *)rtm + rtm->rtm_hdrlen); switch (af) { case AF_INET: { sin = (struct sockaddr_in *)sa2; |