CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function.

This commit is contained in:
Karl-Heinz Zimmer 2002-07-04 00:02:19 +00:00
parent e3e127d4a8
commit 07f4264a5e

View File

@ -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