aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-03 01:16:11 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-03 01:16:11 +0000
commit79a741f2616cc17440b66842899bd142fc9341c6 (patch)
treeb51a9a008646ca0a716b2633e54a544e2ad830ad /frame.c
parent176778cc0d9667d9857154f53b7085ea15cc63c4 (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
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);