]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix userauth issue
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 12 Jan 2011 21:32:05 +0000 (15:32 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 12 Jan 2011 21:32:46 +0000 (15:32 -0600)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 0ebf6d5b53d9685b42f0c393878e345f28fbcd0a..344b0ee1178f3649863fdfd45aa069d54b909296 100644 (file)
@@ -1548,7 +1548,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                        char api_reply[512] = "Allowed-API: all\n";
                        char log_reply[512] = "";
                        int allowed_log = 1;
-
+                       char *tmp;
 
                        switch_clear_flag(listener, LFLAG_ALLOW_LOG);
 
@@ -1564,8 +1564,9 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                                *pass++ = '\0';
                        }
 
-                       if ((pass = strchr(user, ':'))) {
-                               *pass++ = '\0';
+                       if ((tmp = strchr(user, ':'))) {
+                               *tmp++ = '\0';
+                               pass = tmp;
                        }
                        
                        if (zstr(user) || zstr(domain_name)) {