From 6c8fcaba7fabd07d447d90e1a31bf5ffe5062970 Mon Sep 17 00:00:00 2001 From: Karl-Heinz Zimmer Date: Thu, 4 Jul 2002 00:02:19 +0000 Subject: [PATCH] CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function. --- trunk/gpgmeplug/gpgmeplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 7622fda..4af5ffe 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/gpgmeplug/gpgmeplug.c @@ -2671,7 +2671,7 @@ bool checkMessageSignature( char** cleartext, ++UID_idx ){ if (*attr_string) { fprintf( stderr, "gpgmeplug checkMessageSignature found email: %s\n", attr_string ); - if( sigmeta->extended_info[sig_idx].emailCount ) + if( !sigmeta->extended_info[sig_idx].emailCount ) alloc_return = malloc( sizeof( char*) ); else -- 2.26.2