commit 1b9b79d24ea2ff18043b1f6c2dccead2bf5bdd01
Author: Oswald Buddenhagen <[email protected]>
Date:   Sun Apr 10 13:28:48 2011 +0200

    security fix: failure to load the certificate file is *not* OK ...

 src/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/socket.c b/src/socket.c
index 9f09918..52b94e1 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -147,7 +147,7 @@ verify_cert( const server_conf_t *conf, Socket_t *sock )
                if (!(fp = fopen( conf->cert_file, "rt" ))) {
                        error( "Unable to load CertificateFile '%s': %s\n",
                               conf->cert_file, strerror( errno ) );
-                       return 0;
+                       return -1;
                }
                err = -1;
                for (lcert = 0; READ_X509_KEY( fp, &lcert ); )

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to