mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +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:
@@ -1354,9 +1354,9 @@ static struct ast_channel *agent_request(const char *type, int format, void *dat
|
||||
struct timeval now;
|
||||
|
||||
s = data;
|
||||
if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
|
||||
if ((s[0] == '@') && (sscanf(s + 1, "%30d", &groupoff) == 1)) {
|
||||
groupmatch = (1 << groupoff);
|
||||
} else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
|
||||
} else if ((s[0] == ':') && (sscanf(s + 1, "%30d", &groupoff) == 1)) {
|
||||
groupmatch = (1 << groupoff);
|
||||
waitforagent = 1;
|
||||
} else
|
||||
@@ -2337,9 +2337,9 @@ static int agent_devicestate(void *data)
|
||||
int res = AST_DEVICE_INVALID;
|
||||
|
||||
s = data;
|
||||
if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupoff) == 1))
|
||||
if ((s[0] == '@') && (sscanf(s + 1, "%30d", &groupoff) == 1))
|
||||
groupmatch = (1 << groupoff);
|
||||
else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
|
||||
else if ((s[0] == ':') && (sscanf(s + 1, "%30d", &groupoff) == 1)) {
|
||||
groupmatch = (1 << groupoff);
|
||||
} else
|
||||
groupmatch = 0;
|
||||
|
||||
Reference in New Issue
Block a user