summaryrefslogtreecommitdiff
path: root/zebra/irdp_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/irdp_packet.c')
-rw-r--r--zebra/irdp_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c
index 74c75ab2..3c5f1559 100644
--- a/zebra/irdp_packet.c
+++ b/zebra/irdp_packet.c
@@ -286,7 +286,7 @@ send_packet(struct interface *ifp,
u_long src;
int on;
- if (!(ifp->flags & IFF_UP))
+ if (!(ifp->flags & IFF_UP))
return;
if (!p)
@@ -311,7 +311,6 @@ send_packet(struct interface *ifp,
/* icmp->checksum is already calculated */
ip->ip_len = sizeof(struct ip) + stream_get_endp(s);
- stream_free(s);
on = 1;
if (setsockopt(irdp_sock, IPPROTO_IP, IP_HDRINCL,