Don't assume valid uuids are exactly 36 characters long

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14393 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2009-07-27 23:37:45 +00:00
parent 9494aa77c8
commit bf77c75f43
1 changed files with 1 additions and 1 deletions

View 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)) ||