Skip to content

Commit

Permalink
Fixed again
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhvh committed Apr 23, 2014
1 parent b556ddc commit e9981bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data-types/mailstream_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ ssize_t mailstream_ssl_get_certificate(mailstream *stream, unsigned char **cert_
return -1;

len = i2d_X509(cert, NULL);
* cert_DER = malloc(length);
* cert_DER = malloc(len);
if (* cert_DER == NULL)
return -1;

Expand Down

0 comments on commit e9981bd

Please sign in to comment.