Module: kamailio
Branch: master
Commit: fda8de91d80a2aee7a3ec5e44e6fc1d918541254
URL:
https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-31T15:54:27+02:00
ctl: skip condition on already set name variable
---
Modified: src/modules/ctl/ctrl_socks.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d…
Patch:
https://github.com/kamailio/kamailio/commit/fda8de91d80a2aee7a3ec5e44e6fc1d…
---
diff --git a/src/modules/ctl/ctrl_socks.c b/src/modules/ctl/ctrl_socks.c
index 9e800a907b..f9d559564b 100644
--- a/src/modules/ctl/ctrl_socks.c
+++ b/src/modules/ctl/ctrl_socks.c
@@ -145,7 +145,7 @@ struct id_list* parse_listen_id(char* l, int len, enum socket_protos
def)
proto=UDP_SOCK;
DBG("guess:%s is a tcp socket\n", name);
}
- }else if (name && strchr(name, '/')){
+ }else if (strchr(name, '/')){
switch(def){
case TCP_SOCK:
case UDP_SOCK: