aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-21 13:08:12 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-21 13:08:12 +0100
commitb8ac7ffd7c459b40c0fa8c25da06a306ed40b360 (patch)
tree3d08b461813a017a2318a531520edcadfb393be1 /openbsc/src/nat/bsc_nat.c
parentb13cf829da5a35e1f6bd8a09250a97b8a212b718 (diff)
[msc/nat] It is better to use msgb_free to free the msgb
msgb_free is currently calling talloc_free but this might change in the future and then this code would break..
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 0ad8be986..ba195fedb 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -148,7 +148,7 @@ static int ipaccess_msc_cb(struct bsc_fd *bfd, unsigned int what)
else if (hh->proto == IPAC_PROTO_SCCP)
forward_sccp_to_bts(msg);
- talloc_free(msg);
+ msgb_free(msg);
return 0;
}
@@ -204,7 +204,7 @@ static int ipaccess_bsc_cb(struct bsc_fd *bfd, unsigned int what)
/* FIXME: Currently no PONG is sent to the BSC */
/* FIXME: Currently no ID ACK is sent to the BSC */
forward_sccp_to_msc(msg);
- talloc_free(msg);
+ msgb_free(msg);
return 0;
}