Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37567245
en ru br
ALT Linux repositórios
S:2.24.4-alt12
5.0: 2.24.1-alt1
4.1: 2.22.0-alt1.1
4.0: 2.16.3-alt3
3.0: 1.0.5-alt7.1

Group :: Sistema/Bibliotecas
RPM: gnome-vfs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: gnome-vfs-2.24-openssl11.patch
Download


Index: gnome-vfs-2.24.4/libgnomevfs/gnome-vfs-ssl.c
===================================================================
--- gnome-vfs-2.24.4.orig/libgnomevfs/gnome-vfs-ssl.c
+++ gnome-vfs-2.24.4/libgnomevfs/gnome-vfs-ssl.c
@@ -375,6 +375,8 @@ gnome_vfs_ssl_create_from_fd (GnomeVFSSS
         /* FIXME: SSL_CTX_set_verify (ssl_ctx, SSL_VERIFY_PEER, &ssl_verify);*/
         ssl->private->ssl = SSL_new (ssl_ctx);
 
+	SSL_CTX_free (ssl_ctx); /* actually drops the reference count only, SSL_new will have incremented the ctx refcount. */
+
 	if (ssl->private->ssl == NULL) {
 		return GNOME_VFS_ERROR_IO;
 	}
@@ -407,9 +409,6 @@ gnome_vfs_ssl_create_from_fd (GnomeVFSSS
 			}
 		}
 
-                if (ssl->private->ssl->ctx)
-                        SSL_CTX_free (ssl->private->ssl->ctx);
-
                 SSL_free (ssl->private->ssl);
 		g_free (ssl->private);
 		g_free (ssl);
@@ -712,7 +711,6 @@ gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl,
 		}
 	}
 	
-	SSL_CTX_free (ssl->private->ssl->ctx);
 	SSL_free (ssl->private->ssl);
 	close (ssl->private->sockfd);
 	if (ssl->private->timeout)
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009