Skip to content
Snippets Groups Projects
Commit c21cee80 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "func_aes: fix misuse of strlen on binary data"

parents a3c9a74a 8f94f947
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment