projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07bce6f
)
one more disallow issue resolved disallow=all in peer must flush prefs list
author
Anthony Minessale II
<anthmct@yahoo.com>
Fri, 3 Dec 2004 01:16:11 +0000
(
01:16
+0000)
committer
Anthony Minessale II
<anthmct@yahoo.com>
Fri, 3 Dec 2004 01:16:11 +0000
(
01:16
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4379
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
frame.c
patch
|
blob
|
history
diff --git
a/frame.c
b/frame.c
index
2b116fb
..
40bd9c2
100755
(executable)
--- 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);