0af1ab08a87d41f37c7e04185be43abd55c1c8de galt Wed Mar 22 18:27:16 2017 -0700 just for improved consistency diff --git src/lib/https.c src/lib/https.c index c65a786..51903c1 100644 --- src/lib/https.c +++ src/lib/https.c @@ -178,31 +178,32 @@ } if (newUrl) /* no redirects */ { xerr("proxy server response should not be a redirect"); goto cleanup; } } sbio=BIO_new_socket(fd,BIO_NOCLOSE); if (sbio == NULL) { xerr("BIO_new_socket() failed"); goto cleanup; } -if ((ssbio = BIO_new_ssl(ctx, 1)) == NULL) +ssbio = BIO_new_ssl(ctx, 1); +if (ssbio == NULL) { xerr("BIO_new_ssl() failed"); goto cleanup; } sbio = BIO_push(ssbio, sbio); BIO_get_ssl(sbio, &ssl); if(!ssl) { xerr("Can't locate SSL pointer"); goto cleanup; } /* Server Name Indication (SNI)