diff options
author | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-10 21:42:20 +0000 |
---|---|---|
committer | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-10 21:42:20 +0000 |
commit | 302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80 (patch) | |
tree | 6165c4e3f986812545bcbf12952840a314a6d4ac /ripngd/ripngd.c | |
parent | 224a85d77aea7077ce7aec038d7abe3bb3b049ea (diff) | |
parent | 122e52d3c6f844aceddf1b3b35885d0feae6650a (diff) | |
download | quagga-302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80.tar.bz2 quagga-302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80.tar.xz |
Merge branch 'master' of /git/quagga.euro-ix into pthreads
Diffstat (limited to 'ripngd/ripngd.c')
-rw-r--r-- | ripngd/ripngd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index 9deac032..6e32d83c 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -272,7 +272,10 @@ ripng_recv_packet (int sock, u_char *buf, int bufsize, /* Incoming packet's multicast hop limit. */ if (cmsgptr->cmsg_level == IPPROTO_IPV6 && cmsgptr->cmsg_type == IPV6_HOPLIMIT) - *hoplimit = *((int *) CMSG_DATA (cmsgptr)); + { + int *phoplimit = (int *) CMSG_DATA (cmsgptr); + *hoplimit = *phoplimit; + } } /* Hoplimit check shold be done when destination address is |