diff options
| author | itojun <itojun@NetBSD.org> | 2003-01-21 03:23:44 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2003-01-21 03:23:44 +0000 |
| commit | 4d7a2eb391fdd3b1bb577d3b453bee82f3d7f7d5 (patch) | |
| tree | b92940462e342936e520e5500f6da2afc89630ff /sys/netinet | |
| parent | d4ad86a080b6e7717cf64587cae4aafbaed42cb9 (diff) | |
correct panic when ip-in-ip encapsulation is used. found by Masanori Kanaoka
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_encap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c index d8c6f67dfbf..a2c36eebf5d 100644 --- a/sys/netinet/ip_encap.c +++ b/sys/netinet/ip_encap.c @@ -70,7 +70,7 @@ #define USE_RADIX #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.12 2003/01/17 08:11:56 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.13 2003/01/21 03:23:44 itojun Exp $"); #include "opt_mrouting.h" #include "opt_inet.h" @@ -950,7 +950,7 @@ encap_getarg(m) p = NULL; mtag = m_tag_find(m, PACKET_TAG_ENCAP, NULL); if (mtag != NULL) { - p = (void *)(mtag + 1); + p = *(void **)(mtag + 1); m_tag_delete(m, mtag); } return p; |
