OBS-URL: https://build.opensuse.org/package/show/network:telephony/osmo-iuh?expand=0&rev=5
56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
From 3ec7c947c8a00d180b8e13b13822c8996b2d98e1 Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Tue, 2 Jan 2018 00:08:53 +0100
|
|
Subject: [PATCH] fix return values
|
|
|
|
(fixed in git already - but only partially)
|
|
---
|
|
asn1/utils/asn1tostruct.py | 2 ++
|
|
src/ranap_common_cn.c | 3 +++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/asn1/utils/asn1tostruct.py b/asn1/utils/asn1tostruct.py
|
|
index 8364c27..63aea8b 100755
|
|
--- a/asn1/utils/asn1tostruct.py
|
|
+++ b/asn1/utils/asn1tostruct.py
|
|
@@ -384,6 +384,8 @@ for key in iesDefs:
|
|
iename = re.sub('id-', '', ie[0])
|
|
ienameunderscore = lowerFirstCamelWord(re.sub('-', '_', iename))
|
|
f.write(" ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_%s, &%s->%s);\n" % (ietypeunderscore, lowerFirstCamelWord(re.sub('-', '_', key)), ienameunderscore))
|
|
+
|
|
+ f.write(" return 0;\n")
|
|
f.write("}\n\n")
|
|
|
|
for key in iesDefs:
|
|
diff --git a/src/ranap_common_cn.c b/src/ranap_common_cn.c
|
|
index d02eb37..cb12d3a 100644
|
|
--- a/src/ranap_common_cn.c
|
|
+++ b/src/ranap_common_cn.c
|
|
@@ -360,6 +360,7 @@ static int cn_ranap_rx_initiating_msg_cl(void *ctx, RANAP_InitiatingMessage_t *i
|
|
get_value_string(ranap_procedure_code_vals, imsg->procedureCode));
|
|
break;
|
|
}
|
|
+ return rc;
|
|
}
|
|
|
|
static void cn_ranap_free_initiating_msg_cl(ranap_message *message)
|
|
@@ -433,6 +434,7 @@ static int cn_ranap_rx_successful_msg_cl(void *ctx, RANAP_SuccessfulOutcome_t *i
|
|
get_value_string(ranap_procedure_code_vals, imsg->procedureCode));
|
|
break;
|
|
}
|
|
+ return rc;
|
|
}
|
|
|
|
static void cn_ranap_free_successful_msg_cl(ranap_message *message)
|
|
@@ -488,6 +490,7 @@ static int _cn_ranap_rx_cl(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes
|
|
get_value_string(ranap_presence_vals, pdu->present));
|
|
break;
|
|
}
|
|
+ return rc;
|
|
}
|
|
|
|
static void _cn_ranap_free_cl(ranap_message *message)
|
|
--
|
|
2.15.1
|
|
|