diff options
author | Remi Gacogne <rgacogne-github@coredump.fr> | 2013-09-08 13:48:34 +0000 |
---|---|---|
committer | Vincent JARDIN <vincent.jardin@6wind.com> | 2014-02-11 10:28:03 +0100 |
commit | a11e012e8661629d665e992e765741a5eaa7d017 (patch) | |
tree | d6967d9c5044f8c924aa2f4b62bac8e3bda358e2 /zebra | |
parent | b52aef18a9f3acc8b24ab5c2631dc574b8e2ec70 (diff) | |
download | quagga-a11e012e8661629d665e992e765741a5eaa7d017.tar.bz2 quagga-a11e012e8661629d665e992e765741a5eaa7d017.tar.xz |
security: Fix some typos and potential NULL-deref
This patch against the git tree fixes minor typos, some of them possibily
leading to NULL-pointer dereference in rare conditions.
Signed-off-by: Remi Gacogne <rgacogne-github@coredump.fr>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Acked-by: Feng Lu <lu.feng@6wind.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/irdp_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c index 28dc171e..50525043 100644 --- a/zebra/irdp_packet.c +++ b/zebra/irdp_packet.c @@ -287,7 +287,7 @@ send_packet(struct interface *ifp, if (!(ifp->flags & IFF_UP)) return; - if (!p) + if (p) src = ntohl(p->u.prefix4.s_addr); else src = 0; /* Is filled in */ |