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 7622fda682163edeaaa60cbc5cb7c80f14e2b16d..4af5ffecee1f35a93843cefdb2844ac244ed011b 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