aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-06 07:05:13 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-08 07:23:51 +0800
commitdb544db73af0638fa822d8e09eb169cc5b08f65c (patch)
tree62ec5fd229c926e3e36c5399a3a67e7b07f841c2 /openbsc
parentf49d6164276716f47b097ab0e857c52c93171cbc (diff)
mgcp: Move the mgcp_free_endp into the right path for the CRCX failure
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index f706363c4..f5eef5671 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -515,10 +515,10 @@ error:
LOGP(DMGCP, LOGL_ERROR, "Malformed line: %s on 0x%x with: line_start: %d %d\n",
hexdump(msg->l3h, msgb_l3len(msg)),
ENDPOINT_NUMBER(endp), line_start, i);
- mgcp_free_endp(endp);
return create_response(error_code, "CRCX", trans_id);
error2:
+ mgcp_free_endp(endp);
LOGP(DMGCP, LOGL_NOTICE, "Resource error on 0x%x\n", ENDPOINT_NUMBER(endp));
return create_response(error_code, "CRCX", trans_id);
}