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 3e95a6c550
commit 6c8fcaba7f

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