summaryrefslogtreecommitdiff
path: root/frame.c
diff options
context:
space:
mode:
authorAnthony Minessale II <anthmct@yahoo.com>2004-12-03 01:16:11 +0000
committerAnthony Minessale II <anthmct@yahoo.com>2004-12-03 01:16:11 +0000
commit41306646ade6c8f333f8f8df1da8064e7f047f58 (patch)
treeb51a9a008646ca0a716b2633e54a544e2ad830ad /frame.c
parent07bce6f282e3a0138e70001b78af877ef2b6776f (diff)
one more disallow issue resolved disallow=all in peer must flush prefs list
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'frame.c')
-rwxr-xr-xframe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/frame.c b/frame.c
index 2b116fb03..40bd9c299 100755
--- a/frame.c
+++ b/frame.c
@@ -982,7 +982,8 @@ void ast_parse_allow_deny(struct ast_codec_pref *pref, int *mask, char *list, in
ast_codec_pref_append(pref, format_i);
else
ast_codec_pref_remove(pref, format_i);
- }
+ } else if(!allowing) /* disallow all must clear your prefs or it makes no sense */
+ memset(pref, 0, sizeof(struct ast_codec_pref));
} else
ast_log(LOG_WARNING, "Cannot %s unknown format '%s'\n", allowing ? "allow" : "disallow", last_format);