Skip to content

Commit

Permalink
lib-dcrypt: Finish previous t_malloc() change.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 30, 2016
1 parent 11f02cd commit 4fbd5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-dcrypt/istream-decrypt.c
Expand Up @@ -120,7 +120,7 @@ ssize_t i_stream_decrypt_read_header_v1(struct decrypt_istream *stream,
if (stream->priv_key == NULL) {
/* see if we can get one */
if (stream->key_callback != NULL) {
unsigned char *key_id = t_malloc(digest_len);
unsigned char *key_id = t_malloc_no0(digest_len);
memcpy(key_id, digest_pos, digest_len);
int ret = stream->key_callback(key_id, &(stream->priv_key), &error, stream->key_context);
if (ret < 0) {
Expand Down

0 comments on commit 4fbd5c5

Please sign in to comment.