Module: kamailio
Branch: master
Commit: 96582d77583719d7bb9c5e5437198800ae9e7a12
URL:
https://github.com/kamailio/kamailio/commit/96582d77583719d7bb9c5e543719880…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-24T12:22:00+02:00
xcap_client: safety check for namespace variable
---
Modified: src/modules/xcap_client/xcap_functions.c
---
Diff:
https://github.com/kamailio/kamailio/commit/96582d77583719d7bb9c5e543719880…
Patch:
https://github.com/kamailio/kamailio/commit/96582d77583719d7bb9c5e543719880…
---
diff --git a/src/modules/xcap_client/xcap_functions.c
b/src/modules/xcap_client/xcap_functions.c
index 6b875b17d0..cee161b7d0 100644
--- a/src/modules/xcap_client/xcap_functions.c
+++ b/src/modules/xcap_client/xcap_functions.c
@@ -223,7 +223,7 @@ xcap_node_sel_t* xcapNodeSelAddStep(xcap_node_sel_t* curr_sel, str*
name,
}
curr_sel->size+= 1+ new_step.len;
- if(namespace->len)
+ if(namespace && namespace->len)
{
curr_sel->size+= namespace->len+ 3;
}