From 2e40adccacd6e95c22a930d6526d7fef4ede4ed5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 9 Nov 2009 19:14:31 +0000 Subject: [PATCH] fix bug tolerating the other guy's bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15401 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) {