diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 5c8578be50..4bac62e283 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -1066,10 +1066,15 @@ switch_status_t msrp_report(switch_msrp_client_socket_t *csock, switch_msrp_msg_ static switch_bool_t msrp_find_uuid(char *uuid, const char *to_path) { - int len = strlen(to_path); + int len; int i; int slash_count = 0; - switch_assert(to_path); + + if (!to_path) { + return SWITCH_FALSE; + } + + len = strlen(to_path); for(i=0; i