Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Without this change you get the following error: comparison of unsign… #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion c_src/exmpp_tls_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ exmpp_tls_openssl_control(ErlDrvData drv_data, unsigned int command,
case COMMAND_GET_PEER_CERTIFICATE:
/* Get the peer certificate. */
cert = SSL_get_peer_certificate(edd->ssl);
if (cert == NULL || (rlen = i2d_X509(cert, NULL)) < 0) {
int rlen = i2d_X509(cert, NULL);
if (cert == NULL || rlen < 0) {
to_send = exmpp_new_xbuf();
if (to_send == NULL)
return (-1);
Expand Down