[Rt-commit] rt branch, 4.2/smime-missing-signing-key, created. rt-4.2.8-8-gfdd0e50
Alex Vandiver
alexmv at bestpractical.com
Wed Oct 8 13:01:33 EDT 2014
The branch, 4.2/smime-missing-signing-key has been created
at fdd0e50140b72672ffd67041e281c858a8a24044 (commit)
- Log -----------------------------------------------------------------
commit fdd0e50140b72672ffd67041e281c858a8a24044
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Oct 8 13:00:56 2014 -0400
Ensure that _SignEncrypt always returns ($buf, %hash)
This return point omitted the undef buffer, causing the hash assignment
in the calling site to be off by one.
diff --git a/lib/RT/Crypt/SMIME.pm b/lib/RT/Crypt/SMIME.pm
index 47fdeb7..68a0804 100644
--- a/lib/RT/Crypt/SMIME.pm
+++ b/lib/RT/Crypt/SMIME.pm
@@ -338,7 +338,7 @@ sub _SignEncrypt {
KeyType => "secret",
});
$res{exit_code} = 1;
- return %res;
+ return (undef, %res);
}
$args{'Passphrase'} = $self->GetPassphrase( Address => $args{'Signer'} )
unless defined $args{'Passphrase'};
-----------------------------------------------------------------------
More information about the rt-commit
mailing list