forked from cellular-infrastructure/osmo-pcu
bssgp: Only call bssgp_tx_llc_discarded if the bctx exists
While this does not happen in real use, and unset btcx can lead to segfaults in test cases. The other code outside of gprs_bssgp_pcu.cpp does not depend on bctx being non-NULL: Sponsored-by: On-Waves ehf
This commit is contained in:
parent
af387e2199
commit
6e013a136a
|
@ -318,7 +318,8 @@ drop_frame:
|
|||
frames = 0xff;
|
||||
if (octets > 0xffffff)
|
||||
octets = 0xffffff;
|
||||
bssgp_tx_llc_discarded(bctx, tlli(), frames, octets);
|
||||
if (bctx)
|
||||
bssgp_tx_llc_discarded(bctx, tlli(), frames, octets);
|
||||
}
|
||||
|
||||
return msg;
|
||||
|
|
Loading…
Reference in New Issue