diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2021-02-12 01:57:52 +0100 |
---|---|---|
committer | daniel <dwillmann@sysmocom.de> | 2021-02-12 14:19:20 +0000 |
commit | fa632b8e80edad72b4413aac6886030c806929b9 (patch) | |
tree | 6a74d818aaf9354ba1a78229ea3c00029c59293b /src/gb/bssgp_bvc_fsm.c | |
parent | 1ff86f7cec32d39b84effa896569f8fc7ca703d2 (diff) |
bssgp2_enc_status: Truncate STATUS message to maximum PDU length
Related: OS#4889
Change-Id: Ic39d918c56399ceb0431299ce938e3bf276f678a
Diffstat (limited to 'src/gb/bssgp_bvc_fsm.c')
-rw-r--r-- | src/gb/bssgp_bvc_fsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/bssgp_bvc_fsm.c b/src/gb/bssgp_bvc_fsm.c index d2ee1462..a0359386 100644 --- a/src/gb/bssgp_bvc_fsm.c +++ b/src/gb/bssgp_bvc_fsm.c @@ -238,7 +238,7 @@ static void _tx_status(struct osmo_fsm_inst *fi, enum gprs_bssgp_cause cause, co if (cause == BSSGP_CAUSE_UNKNOWN_BVCI || cause == BSSGP_CAUSE_BVCI_BLOCKED) bvci = &bfp->bvci; - tx = bssgp2_enc_status(cause, bvci, rx); + tx = bssgp2_enc_status(cause, bvci, rx, bfp->max_pdu_len); if (msgb_bvci(rx) == 0) fi_tx_sig(fi, tx); |