]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
handle allocation error. Found by Klockwork (www.klocwork.com)
authorMichael Jerris <mike@jerris.com>
Mon, 19 May 2008 22:39:48 +0000 (22:39 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 19 May 2008 22:39:48 +0000 (22:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8485 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index bc1579f235c5bac8189c4735ede281cf31d0d8eb..cb3ebc12dddcecfb8e29d924f6de251ebfc588be 100644 (file)
@@ -1852,6 +1852,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
 
        user = strdup(outbound_profile->destination_number);
 
+       if (!user) goto done;
+
        if (!(domain = strchr(user, '@'))) {
                goto done;
        }