aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl-Heinz Zimmer <[email protected]>2002-07-04 00:02:19 +0000
committerKarl-Heinz Zimmer <[email protected]>2002-07-04 00:02:19 +0000
commit07f4264a5e687ed0175780ecc8bf9636a0f1dbfd (patch)
tree31daf632029824a6e9365c6bca5ce9b8a3f2eb27
parentfixing bug #1154 (diff)
downloadgpgme-07f4264a5e687ed0175780ecc8bf9636a0f1dbfd.tar.gz
gpgme-07f4264a5e687ed0175780ecc8bf9636a0f1dbfd.zip
CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function.
Diffstat (limited to '')
-rw-r--r--gpgmeplug/gpgmeplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c
index 7622fda6..4af5ffec 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