From 1bb1aa0fc5b5a344a00c5f378f81f513e1418f6a Mon Sep 17 00:00:00 2001 From: joss17 Date: Tue, 18 Aug 2009 12:44:32 +0000 Subject: [PATCH] add return when decrypting went wrong git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1555 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/rsserver/rsinit.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index ea29e9887..804cebf2d 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -1338,6 +1338,7 @@ int RsInit::LoadCertificates(bool autoLoginNT) } else { gpgme_data_release (plain); std::cerr << "Error : decrypting went wrong !" << std::endl; + return 0; } gpgme_data_release (cipher); fclose(sslPassphraseFile);