Skip to content
Failed

Changes

Summary

  1. ipa: Clarify msgb_free in ipa_rx_msg() (details)
Commit 552e52ee3e58e1916f7ab774d943a9deb8e729cc by Pau Espin Pedrol
ipa: Clarify msgb_free in ipa_rx_msg()

First of all, clean up and clarify the handling of msgb in
ipa_rx_msg_sccp() by always freeing the patched msgb copy, and letting
parent function free the original received msgb.

This in turn allows moving the msgb_free() of the received msg to
ipa_cli_read_cb() and ss7_asp_ipa_srv_conn_rx_cb(), which is where the
msgb is allocated, and makes the msgb lifecycle far more easy to
understand.
This is also what's already done in the
xua_cli_read_cb()/ss7_asp_xua_srv_conn_rx_cb(). This way we have similar
code paths in xua and ipa.

Related: OS#6876
Change-Id: Id29955182d9da47165ee9a2d7777b92fb87844b9
The file was modifiedsrc/ipa.c
The file was modifiedsrc/ss7_asp.c