mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Fix small sizeof bug (#4407)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2945,7 +2945,7 @@ static int iax2_call(struct ast_channel *c, char *dest, int timeout)
|
||||
if (secret) {
|
||||
if (secret[0] == '[') {
|
||||
/* This is an RSA key, not a normal secret */
|
||||
ast_copy_string(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->secret));
|
||||
ast_copy_string(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->outkey));
|
||||
if (!ast_strlen_zero(iaxs[callno]->outkey)) {
|
||||
iaxs[callno]->outkey[strlen(iaxs[callno]->outkey) - 1] = '\0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user