From: Joshua Colp Date: Fri, 9 Mar 2007 20:46:43 +0000 (+0000) Subject: If we are unable to lookup the host in a c line we have to abort, otherwise the previ... X-Git-Tag: 1.2.17~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5941cc916cee75692ab58a6816c1c700bc8ec46d;p=thirdparty%2Fasterisk.git If we are unable to lookup the host in a c line we have to abort, otherwise the previous data is gone and we will (potentially) have no data when all is said and done. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58579 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c9eefcdf8c..d2ae104724 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3667,6 +3667,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) hp = ast_gethostbyname(host, &ahp); if (!hp) { ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c); + return -1; } } } @@ -3693,6 +3694,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) hp = ast_gethostbyname(host, &ahp); if (!hp) { ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c); + return -1; } } }