CRASH prevention fix: Memory was overwritten if there were more than 1 email address...
authorKarl-Heinz Zimmer <khz@kde.org>
Thu, 4 Jul 2002 00:02:19 +0000 (00:02 +0000)
committerKarl-Heinz Zimmer <khz@kde.org>
Thu, 4 Jul 2002 00:02:19 +0000 (00:02 +0000)
gpgmeplug/gpgmeplug.c

index 7622fda..4af5ffe 100644 (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