summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/irdp_packet.c2
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 */