From 546bfe69b07a609c66077d11eeb37a1f11a4f3db Mon Sep 17 00:00:00 2001 From: realityfabric Date: Mon, 14 Mar 2016 02:46:58 -0700 Subject: [PATCH] Changed the logic back to setting err in the conditional statement while more explicitly a logical one --- openpgpsdk/src/openpgpsdk/openssl_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgpsdk/src/openpgpsdk/openssl_crypto.c b/openpgpsdk/src/openpgpsdk/openssl_crypto.c index 828559fca..a9457208c 100644 --- a/openpgpsdk/src/openpgpsdk/openssl_crypto.c +++ b/openpgpsdk/src/openpgpsdk/openssl_crypto.c @@ -439,7 +439,7 @@ ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length, { ERR_load_crypto_strings() ; unsigned long err = 0 ; - while(err == ERR_get_error()) + while((err = ERR_get_error()) > 0) fprintf(stderr,"DSA_do_verify(): ERR = %ld. lib error:\"%s\", func_error:\"%s\", reason:\"%s\"\n",err,ERR_lib_error_string(err),ERR_func_error_string(err),ERR_reason_error_string(err)) ; //assert(ret >= 0); return ops_false ;