mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -146,7 +146,7 @@ static int record_exec(struct ast_channel *chan, void *data)
|
||||
return -1;
|
||||
}
|
||||
if (args.silence) {
|
||||
if ((sscanf(args.silence, "%d", &i) == 1) && (i > -1)) {
|
||||
if ((sscanf(args.silence, "%30d", &i) == 1) && (i > -1)) {
|
||||
silence = i * 1000;
|
||||
} else if (!ast_strlen_zero(args.silence)) {
|
||||
ast_log(LOG_WARNING, "'%s' is not a valid silence duration\n", args.silence);
|
||||
@@ -154,7 +154,7 @@ static int record_exec(struct ast_channel *chan, void *data)
|
||||
}
|
||||
|
||||
if (args.maxduration) {
|
||||
if ((sscanf(args.maxduration, "%d", &i) == 1) && (i > -1))
|
||||
if ((sscanf(args.maxduration, "%30d", &i) == 1) && (i > -1))
|
||||
/* Convert duration to milliseconds */
|
||||
maxduration = i * 1000;
|
||||
else if (!ast_strlen_zero(args.maxduration))
|
||||
|
||||
Reference in New Issue
Block a user