aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw_rua.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-25 13:21:02 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-27 18:27:33 +0000
commita6a68e62d9b8efba17b40a8871211cdabdbda851 (patch)
tree46e44ad6a480fd31f11c58ef173f8915acd5df88 /src/hnbgw_rua.c
parentfe87809c92b6059b6b25c110b200a5d60c842f7b (diff)
fix error rc in various ASN.1 decoding functions
Fixes: CID#57945, CID#57946, CID#57947, CID#57948, CID#57950, CID#57951 Change-Id: I2d9ee1aa79959c5973041393f4769faa13720898
Diffstat (limited to 'src/hnbgw_rua.c')
-rw-r--r--src/hnbgw_rua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index ca745b1..2c34421 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -537,7 +537,7 @@ int hnbgw_rua_rx(struct hnb_context *hnb, struct msgb *msg)
msg->data, msgb_length(msg), 0, 0);
if (dec_ret.code != RC_OK) {
LOGP(DRUA, LOGL_ERROR, "Error in ASN.1 decode\n");
- return rc;
+ return -1;
}
rc = _hnbgw_rua_rx(msg, pdu);