add missing ~ to ast_parse_allow_deny that was breaking disallow
[asterisk/asterisk.git] / frame.c
diff --git a/frame.c b/frame.c
index c3f0d94..2b116fb 100755 (executable)
--- a/frame.c
+++ b/frame.c
@@ -974,7 +974,7 @@ void ast_parse_allow_deny(struct ast_codec_pref *pref, int *mask, char *list, in
                                if (allowing)
                                        (*mask) |= format_i;
                                else
-                                       (*mask) &= format_i;
+                                       (*mask) &= ~format_i;
                        }
                        /* can't consider 'all' a prefered codec*/
                        if(pref && strcasecmp(last_format, "all")) {