mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 04:50:29 +00:00
ospfd: Fix leak of stream
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
a68730c62a
commit
0760d3c963
@ -1167,8 +1167,10 @@ static struct ospf_lsa *ospf_mpls_te_lsa_new(struct ospf *ospf,
|
|||||||
tmp = SET_OPAQUE_LSID(OPAQUE_TYPE_INTER_AS_LSA, lp->instance);
|
tmp = SET_OPAQUE_LSID(OPAQUE_TYPE_INTER_AS_LSA, lp->instance);
|
||||||
lsa_id.s_addr = htonl(tmp);
|
lsa_id.s_addr = htonl(tmp);
|
||||||
|
|
||||||
if (!ospf)
|
if (!ospf) {
|
||||||
|
stream_free(s);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
lsa_header_set(s, options, lsa_type, lsa_id, ospf->router_id);
|
lsa_header_set(s, options, lsa_type, lsa_id, ospf->router_id);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user