]> git.pld-linux.org Git - packages/cups.git/blame - cups-ssl-segfault.patch
- from cups svn
[packages/cups.git] / cups-ssl-segfault.patch
CommitLineData
f3d5ca43
JR
1Index: cups/http.c
2===================================================================
3--- cups/http.c (revision 9908)
4+++ cups/http.c (revision 9909)
5@@ -3807,6 +3807,8 @@
6 any_root = cg->any_root;
7
8 # ifdef HAVE_LIBSSL
9+ (void)any_root;
10+
11 context = SSL_CTX_new(SSLv23_client_method());
12
13 SSL_CTX_set_options(context, SSL_OP_NO_SSLv2); /* Only use SSLv3 or TLS */
14@@ -3815,7 +3817,7 @@
a6363e43
JR
15 BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)http);
16
17 http->tls = SSL_new(context);
18- SSL_set_bio(http->tls_credentials, bio, bio);
19+ SSL_set_bio(http->tls, bio, bio);
20
21 if (SSL_connect(http->tls) != 1)
22 {
f3d5ca43 23@@ -4200,11 +4202,11 @@
a6363e43
JR
24 # ifdef HAVE_LIBSSL
25 SSL_CTX *context; /* Context for encryption */
26
27- context = SSL_get_SSL_CTX(http->tls_credentials);
28+ context = SSL_get_SSL_CTX(http->tls);
29
30- SSL_shutdown(http->tls_credentials);
31+ SSL_shutdown(http->tls);
32 SSL_CTX_free(context);
33- SSL_free(http->tls_credentials);
34+ SSL_free(http->tls);
35
36 # elif defined(HAVE_GNUTLS)
37 gnutls_certificate_client_credentials *credentials;
This page took 0.029905 seconds and 4 git commands to generate.