diff options
author | Anthony Minessale II <anthmct@yahoo.com> | 2004-12-03 01:16:11 +0000 |
---|---|---|
committer | Anthony Minessale II <anthmct@yahoo.com> | 2004-12-03 01:16:11 +0000 |
commit | 41306646ade6c8f333f8f8df1da8064e7f047f58 (patch) | |
tree | b51a9a008646ca0a716b2633e54a544e2ad830ad /frame.c | |
parent | 07bce6f282e3a0138e70001b78af877ef2b6776f (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-x | frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |