mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
don't strstr on null/blank strings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7027 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+1
-1
@@ -1402,7 +1402,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(const char *key,
|
||||
|
||||
if (user_name) {
|
||||
|
||||
if (strstr(xtra_params, "mailbox")) {
|
||||
if (!switch_strlen_zero(xtra_params) && strstr(xtra_params, "mailbox")) {
|
||||
if ((*user = switch_xml_find_child(*domain, "user", "mailbox", user_name))) {
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user