frame_relay: Fix null pointer dereference in DLC/PVC delete

Change-Id: I71de58f6ca15e2057f26d9c5502c8bc3e03e714f
Closes: CID#215530
This commit is contained in:
Harald Welte 2020-11-26 09:28:49 +01:00 committed by laforge
parent 3f2775b4d2
commit 29b77a61ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);