mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
Bug 7425 - Size of buffer is passed in by len
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@35915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -9371,7 +9371,7 @@ static char *function_sippeer(struct ast_channel *chan, char *cmd, char *data, c
|
||||
if (!strcasecmp(colname, "ip")) {
|
||||
ast_copy_string(buf, peer->addr.sin_addr.s_addr ? ast_inet_ntoa(iabuf, sizeof(iabuf), peer->addr.sin_addr) : "", len);
|
||||
} else if (!strcasecmp(colname, "status")) {
|
||||
peer_status(peer, buf, sizeof(buf));
|
||||
peer_status(peer, buf, len);
|
||||
} else if (!strcasecmp(colname, "language")) {
|
||||
ast_copy_string(buf, peer->language, len);
|
||||
} else if (!strcasecmp(colname, "regexten")) {
|
||||
|
Reference in New Issue
Block a user