From: Anthony Minessale Date: Mon, 9 Nov 2009 19:14:31 +0000 (+0000) Subject: fix bug tolerating the other guy's bug X-Git-Tag: v1.0.6~1467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e40adccacd6e95c22a930d6526d7fef4ede4ed5;p=thirdparty%2Ffreeswitch.git fix bug tolerating the other guy's bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15401 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 055010a1ad..4f66fc9baa 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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)) {