- Fix bug with SSL

This commit is contained in:
Veniamin Gvozdikov 2015-11-26 16:15:55 +00:00
parent 6795afec25
commit 564b184631
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402455
2 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= sx
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://cdn.skylable.com/source/

View file

@ -0,0 +1,11 @@
--- libsxclient/src/openssl.c.orig 2015-07-24 14:26:43 UTC
+++ libsxclient/src/openssl.c
@@ -98,6 +98,8 @@ int sxi_sslctxfun(sxc_client_t *sx, curl
return -1;
}
SSL_CTX *ctx = (SSL_CTX*)info->internals;
+ if (!ctx)
+ return -EAGAIN;
SSL_CTX_set_cert_verify_callback(ctx, ssl_verify_hostname, ev);
return 0;
}