]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix bug tolerating the other guy's bug
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 9 Nov 2009 19:14:31 +0000 (19:14 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 9 Nov 2009 19:14:31 +0000 (19:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15401 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 055010a1adce272c578277ad44ca64bc8a5e5335..4f66fc9baa8a4041fc58d501169c5a0904d7e076 100644 (file)
@@ -1945,9 +1945,9 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
                                                }
                                        } else if (!strcasecmp(var, "NDLB-allow-bad-iananame")) {
                                                if (switch_true(val)) {
-                                                       sofia_set_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
+                                                       profile->ndlb |= PFLAG_NDLB_ALLOW_BAD_IANANAME;
                                                } else {
-                                                       sofia_clear_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
+                                                       profile->ndlb &= ~PFLAG_NDLB_ALLOW_BAD_IANANAME;
                                                }
                                        } else if (!strcasecmp(var, "aggressive-nat-detection")) {
                                                if (switch_true(val)) { 
@@ -2694,9 +2694,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                }
                                        } else if (!strcasecmp(var, "NDLB-allow-bad-iananame")) {
                                                if (switch_true(val)) {
-                                                       sofia_set_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
+                                                       profile->ndlb |= PFLAG_NDLB_ALLOW_BAD_IANANAME;
                                                } else {
-                                                       sofia_clear_pflag(profile, PFLAG_NDLB_ALLOW_BAD_IANANAME);
+                                                       profile->ndlb &= ~PFLAG_NDLB_ALLOW_BAD_IANANAME;
                                                }
                                        } else if (!strcasecmp(var, "pass-rfc2833")) {
                                                if (switch_true(val)) {