[sr-dev] git:master:96582d77: xcap_client: safety check for namespace variable
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jul 24 13:01:23 CEST 2017
Module: kamailio
Branch: master
Commit: 96582d77583719d7bb9c5e5437198800ae9e7a12
URL: https://github.com/kamailio/kamailio/commit/96582d77583719d7bb9c5e5437198800ae9e7a12
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/96582d77583719d7bb9c5e5437198800ae9e7a12.diff
Patch: https://github.com/kamailio/kamailio/commit/96582d77583719d7bb9c5e5437198800ae9e7a12.patch
---
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;
}
More information about the sr-dev
mailing list