From d550dbabadfdee98b9c613d4b265eac642073320 Mon Sep 17 00:00:00 2001 From: file Date: Fri, 9 Mar 2007 20:46:43 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.2@58579 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels/chan_sip.c') diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c9eefcdf8..d2ae10472 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; } } } -- cgit v1.2.3