From 07f4264a5e687ed0175780ecc8bf9636a0f1dbfd 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. --- gpgmeplug/gpgmeplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index 7622fda..4af5ffe 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/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