diff options
Diffstat (limited to 'imap-send.c')
-rw-r--r-- | imap-send.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c index 8bf363bbdf..e964e2a7fc 100644 --- a/imap-send.c +++ b/imap-send.c @@ -298,6 +298,10 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve } ctx = SSL_CTX_new(meth); + if (!ctx) { + ssl_socket_perror("SSL_CTX_new"); + return -1; + } if (verify) SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); |