aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-09 20:46:43 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-09 20:46:43 +0000
commitd550dbabadfdee98b9c613d4b265eac642073320 (patch)
tree3a42818b9e2e9333ffef0446d027197a469a5ff2 /channels/chan_sip.c
parentc53d1f095320af4cf60b43c10a5e4c2f8967a0b7 (diff)
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
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}