mirror of https://gerrit.osmocom.org/libosmocore
frame_relay: Fix null pointer dereference in DLC/PVC delete
Change-Id: I71de58f6ca15e2057f26d9c5502c8bc3e03e714f Closes: CID#215530
This commit is contained in:
parent
3f2775b4d2
commit
29b77a61ff
|
@ -558,7 +558,7 @@ static int parse_link_pvc_status(struct osmo_fr_link *link, struct tlv_parsed *t
|
|||
dlc = osmo_fr_dlc_by_dlci(link, dlci);
|
||||
if (!dlc) {
|
||||
/* don't create dlc's for the ones which are about to be deleted. */
|
||||
if (dlc->del)
|
||||
if (pvc->delete)
|
||||
continue;
|
||||
|
||||
dlc = osmo_fr_dlc_alloc(link, dlci);
|
||||
|
|
Loading…
Reference in New Issue