Module: kamailio
Branch: master
Commit: a78aeebd66ec63810987555d5bb492fec1979fc8
URL:
https://github.com/kamailio/kamailio/commit/a78aeebd66ec63810987555d5bb492f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-13T12:52:40+01:00
smsops: check returned value
---
Modified: src/modules/smsops/smsops_impl.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a78aeebd66ec63810987555d5bb492f…
Patch:
https://github.com/kamailio/kamailio/commit/a78aeebd66ec63810987555d5bb492f…
---
diff --git a/src/modules/smsops/smsops_impl.c b/src/modules/smsops/smsops_impl.c
index c8ccc2df4e1..703092542b0 100644
--- a/src/modules/smsops/smsops_impl.c
+++ b/src/modules/smsops/smsops_impl.c
@@ -1249,6 +1249,10 @@ int pv_sms_body(struct sip_msg *msg, pv_param_t *param, pv_value_t
*res)
// Check for UDH
concat = GetConcatShortMsg8bitRefIE(rp_send_data);
+ if(concat == NULL) {
+ LM_ERR("message building failure\n");
+ return -1;
+ }
if(concat->max_num_sm && concat->seq) {
sms_body.s[sms_body.len++] =
5; // always 5 for TP_UDH_IE_CONCAT_SM_8BIT_REF