]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Sun, 20 Aug 2006 05:04:37 +0000 (05:04 +0000)
committerAutomerge script <automerge@asterisk.org>
Sun, 20 Aug 2006 05:04:37 +0000 (05:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@40629 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e359b407e64cba7803cbf586031290134947a1a4..4f45d50fcac407a78df7f1f7258989584ff50251 100644 (file)
@@ -3627,17 +3627,15 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                return -2;
        }
        /* Check for Media-description-level-address for audio */
-       if (pedanticsipchecking) {
-               c = get_sdp_iterate(&destiterator, req, "c");
-               if (!ast_strlen_zero(c)) {
-                       if (sscanf(c, "IN IP4 %256s", host) != 1) {
-                               ast_log(LOG_WARNING, "Invalid secondary host in c= line, '%s'\n", c);
-                       } else {
-                               /* XXX This could block for a long time, and block the main thread! XXX */
-                               hp = ast_gethostbyname(host, &ahp);
-                               if (!hp) {
-                                       ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
-                               }
+       c = get_sdp_iterate(&destiterator, req, "c");
+       if (!ast_strlen_zero(c)) {
+               if (sscanf(c, "IN IP4 %256s", host) != 1) {
+                       ast_log(LOG_WARNING, "Invalid secondary host in c= line, '%s'\n", c);
+               } else {
+                       /* XXX This could block for a long time, and block the main thread! XXX */
+                       hp = ast_gethostbyname(host, &ahp);
+                       if (!hp) {
+                               ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
                        }
                }
        }
@@ -3655,17 +3653,15 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
                }
        }
        /* Check for Media-description-level-address for video */
-       if (pedanticsipchecking) {
-               c = get_sdp_iterate(&destiterator, req, "c");
-               if (!ast_strlen_zero(c)) {
-                       if (sscanf(c, "IN IP4 %256s", host) != 1) {
-                               ast_log(LOG_WARNING, "Invalid secondary host in c= line, '%s'\n", c);
-                       } else {
-                               /* XXX This could block for a long time, and block the main thread! XXX */
-                               hp = ast_gethostbyname(host, &ahp);
-                               if (!hp) {
-                                       ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
-                               }
+       c = get_sdp_iterate(&destiterator, req, "c");
+       if (!ast_strlen_zero(c)) {
+               if (sscanf(c, "IN IP4 %256s", host) != 1) {
+                       ast_log(LOG_WARNING, "Invalid secondary host in c= line, '%s'\n", c);
+               } else {
+                       /* XXX This could block for a long time, and block the main thread! XXX */
+                       hp = ast_gethostbyname(host, &ahp);
+                       if (!hp) {
+                               ast_log(LOG_WARNING, "Unable to lookup host in secondary c= line, '%s'\n", c);
                        }
                }
        }