From f310c7384cd6233f9af835d7dff63738d07f0b15 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 9 Jul 2018 10:46:31 +0200 Subject: [PATCH] usrloc: test if path value for rpc ul.add is . - char usually used for setting no value --- src/modules/usrloc/ul_rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c index 6133db8acd0..c3e5a994058 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 {