]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix userauth
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 29 Dec 2010 19:59:12 +0000 (13:59 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 29 Dec 2010 19:59:12 +0000 (13:59 -0600)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 596a953dcbca1882b52df7ce70b91b7542c0cf8c..24530edc14322dc5a61a7af7555a54bc0c8e0131 100644 (file)
@@ -1556,14 +1556,14 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
 
                        user = cmd + 9;
 
-                       if ((pass = strchr(user, ':'))) {
-                               *pass++ = '\0';
-                       }
-
                        if ((domain_name = strchr(user, '@'))) {
                                *domain_name++ = '\0';
                        }
 
+                       if ((pass = strchr(user, ':'))) {
+                               *pass++ = '\0';
+                       }
+                       
                        if (zstr(user) || zstr(domain_name)) {
                                switch_snprintf(reply, reply_len, "-ERR invalid");
                                switch_clear_flag_locked(listener, LFLAG_RUNNING);