From 5941cc916cee75692ab58a6816c1c700bc8ec46d Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 9 Mar 2007 20:46:43 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } } -- 2.47.2