aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_msc_ip.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-26 05:45:44 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-26 05:49:34 +0100
commit17d751531ec42fc1e63dd985c117ed4cd69eb04b (patch)
tree1ff80d4210069db51548e2d152f424e0cae1cea0 /openbsc/src/bsc_msc_ip.c
parentfacb5cdfc2d20de703c90e12a62b4ca69dea278b (diff)
parent3c1221e2b23876cf0cb4170281eceb73e3395efd (diff)
Merge branch 'on-waves/sccp' into on-waves/bsc-master
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r--openbsc/src/bsc_msc_ip.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 3b5fd0896..25ccd7143 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -529,7 +529,7 @@ static void print_usage()
/*
* SCCP handling
*/
-static int msc_sccp_write_ipa(struct msgb *msg, void *data)
+static void msc_sccp_write_ipa(struct msgb *msg, void *data)
{
int ret;
@@ -539,13 +539,10 @@ static int msc_sccp_write_ipa(struct msgb *msg, void *data)
DEBUGP(DMI, "MSC TX %s\n", hexdump(msg->l2h, msgb_l2len(msg)));
ret = write(msc_connection.fd, msg->data, msg->len);
+ msgb_free(msg);
- if (ret <= 0) {
+ if (ret <= 0)
perror("MSC: Failed to send SCCP");
- return -1;
- }
-
- return 0;
}
static int msc_sccp_accept(struct sccp_connection *connection, void *data)