]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Don't assume valid uuids are exactly 36 characters long
authorAndrew Thompson <andrew@hijacked.us>
Mon, 27 Jul 2009 23:37:45 +0000 (23:37 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Mon, 27 Jul 2009 23:37:45 +0000 (23:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14393 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_erlang_event/handle_msg.c

index 747bc50822ed8000845883d64ee846b7915fbdaa..dfe899d5b7af07ce7d64605aaa9af98b111d1167 100644 (file)
@@ -577,7 +577,7 @@ static switch_status_t handle_msg_handlecall(listener_t *listener, erlang_msg *m
                ei_x_encode_atom(rbuf, "badarg");
        } else {
                switch_core_session_t *session;
-               if (!switch_strlen_zero_buf(uuid_str) && SWITCH_UUID_FORMATTED_LENGTH == strlen(uuid_str)) {
+               if (!switch_strlen_zero_buf(uuid_str)) {
                        if ((session = switch_core_session_locate(uuid_str))) {
                                /* create a new session list element and attach it to this listener */
                                if ((arity==2 && attach_call_to_pid(listener, &msg->from, session)) ||