Module: kamailio
Branch: 5.0
Commit: f310c7384cd6233f9af835d7dff63738d07f0b15
URL:
https://github.com/kamailio/kamailio/commit/f310c7384cd6233f9af835d7dff6373…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-07-09T10:46:31+02:00
usrloc: test if path value for rpc ul.add is .
- char usually used for setting no value
---
Modified: src/modules/usrloc/ul_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f310c7384cd6233f9af835d7dff6373…
Patch:
https://github.com/kamailio/kamailio/commit/f310c7384cd6233f9af835d7dff6373…
---
diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c
index 6133db8acd..c3e5a99405 100644
--- a/src/modules/usrloc/ul_rpc.c
+++ b/src/modules/usrloc/ul_rpc.c
@@ -580,7 +580,7 @@ static void ul_rpc_add(rpc_t* rpc, void* ctx)
ret = rpc->scan(ctx, "SSSdfSddd", &table, &aor, &contact,
&ci.expires,
&dtemp, &path, &ci.flags, &ci.cflags, &ci.methods);
- if(path.len==1 && (strncmp(path.s, "0", 1)==0)) {
+ if(path.len==1 && (strncmp(path.s, "0", 1)==0 || strncmp(path.s,
".", 1)==0)) {
LM_DBG("path == 0 -> unset\n");
}
else {