]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
If we are unable to lookup the host in a c line we have to abort, otherwise the previ...
authorJoshua Colp <jcolp@digium.com>
Fri, 9 Mar 2007 20:46:43 +0000 (20:46 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Mar 2007 20:46:43 +0000 (20:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58579 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index c9eefcdf8c101a7b96c0d1068af4cd2a0af6b902..d2ae1047243aff3dd68a285acd386653b7fcb7a9 100644 (file)
@@ -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;
                        }
                }
        }