diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-03 01:16:11 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-12-03 01:16:11 +0000 |
commit | 79a741f2616cc17440b66842899bd142fc9341c6 (patch) | |
tree | b51a9a008646ca0a716b2633e54a544e2ad830ad | |
parent | 176778cc0d9667d9857154f53b7085ea15cc63c4 (diff) |
one more disallow issue resolved disallow=all in peer must flush prefs list
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4379 f38db490-d61c-443f-a65b-d21fe96a405b
-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); |