# HG changeset patch # User Mychaela Falconia # Date 1719253261 0 # Node ID 0d70444b50706e7423c31c92dc662af9b9959cc8 # Parent bacc590ec839f864298e02ed63a6937dbedc0acc ater: more robust msgb handling in TRAU-UL output diff -r bacc590ec839 -r 0d70444b5070 ater/tx_func.c --- a/ater/tx_func.c Mon Jun 24 09:28:28 2024 +0000 +++ b/ater/tx_func.c Mon Jun 24 18:21:01 2024 +0000 @@ -48,6 +48,10 @@ if (!msg) return; len = osmo_trau_frame_encode(msg->tail, msgb_tailroom(msg), fr); + if (len <= 0) { + msgb_free(msg); + return; + } msgb_put(msg, len); osmo_i460_mux_enqueue(at->schan, msg); }