]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
nm
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 29 Dec 2010 20:13:06 +0000 (14:13 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 29 Dec 2010 20:13:17 +0000 (14:13 -0600)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

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