mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Merge "func_aes: fix misuse of strlen on binary data" into 13
This commit is contained in:
@@ -146,7 +146,7 @@ static int aes_helper(struct ast_channel *chan, const char *cmd, char *data,
|
||||
}
|
||||
|
||||
if (encrypt) { /* if encrypting encode result to base64 */
|
||||
ast_base64encode(buf, (unsigned char *) tmp, strlen(tmp), len);
|
||||
ast_base64encode(buf, (unsigned char *) tmp, tmpP - tmp, len);
|
||||
} else {
|
||||
memcpy(buf, tmp, len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user