libosmo-netif/src
Neels Hofmeyr 4a2f3e9490 fix msgb leak on OSMO_STREAM_SRV_F_FLUSH_DESTROY
In osmo_stream_srv_send(), call msgb_free() if the msgb is not enqueued.

Before this, osmo_stream_srv_send() enqueues a msgb, assuming the queue
will free it. But if OSMO_STREAM_SRV_F_FLUSH_DESTROY is set, it just
returns and drops the msgb. There is no rc, so the caller cannot know.

Change-Id: I994c5e06a9030cfbf4fca8ab42588c61f7121cee
2023-02-20 14:17:00 +00:00
..
Makefile.am Bump version: 1.2.0.114-3804-dirty → 1.3.0 2023-02-07 13:28:19 +01:00
amr.c amr: osmo_amr_bwe_to_oa(): validate input data is long enough 2022-12-21 21:35:06 +01:00
datagram.c migrate to osmo_fd_{read,write}_{enable,disable}() 2021-02-11 15:40:54 +01:00
ipa.c Migrate from osmo_ipa_idtag_parse() to ipa_ccm_id_resp_parse() 2018-08-01 17:36:21 +02:00
ipa_unit.c Add SPDX-License-Identifier + Copyright statements 2017-11-13 01:21:03 +09:00
jibuf.c jibuf: fix indentation in line inside conditional clause 2018-08-13 16:09:24 +02:00
osmux.c osmux: Split input and output code into separate files 2022-10-03 11:29:58 +02:00
osmux_input.c osmux: Allow forwarding AMR NO_DATA frames 2022-12-19 19:44:20 +01:00
osmux_output.c osmux: Allow forwarding AMR NO_DATA frames 2022-12-19 19:44:20 +01:00
prim.c prim: return last error code 2021-12-16 12:55:46 +01:00
rs232.c migrate to osmo_fd_{read,write}_{enable,disable}() 2021-02-11 15:40:54 +01:00
rtp.c rtp: Avoid memcpy(len=0) 2022-08-11 20:31:18 +02:00
sctp.c stream: Improve logging of SCTP_PEER_ADDR_CHANGE notification 2022-10-17 12:27:16 +02:00
stream.c fix msgb leak on OSMO_STREAM_SRV_F_FLUSH_DESTROY 2023-02-20 14:17:00 +00:00