mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
2004-10-08 Moritz Schulte <moritz@g10code.com>
* certchain.c (gpgsm_validate_chain): Do not use keydb_new() in case the no_chain_validation-return-short-cut is used (fixes memory leak).
This commit is contained in:
parent
f0c793c5a7
commit
6cb8f7ad4d
@ -1,3 +1,9 @@
|
||||
2004-10-08 Moritz Schulte <moritz@g10code.com>
|
||||
|
||||
* certchain.c (gpgsm_validate_chain): Do not use keydb_new() in
|
||||
case the no_chain_validation-return-short-cut is used (fixes
|
||||
memory leak).
|
||||
|
||||
2004-10-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
|
||||
|
@ -534,7 +534,7 @@ gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert, ksba_isotime_t r_exptime,
|
||||
int rc = 0, depth = 0, maxdepth;
|
||||
char *issuer = NULL;
|
||||
char *subject = NULL;
|
||||
KEYDB_HANDLE kh = keydb_new (0);
|
||||
KEYDB_HANDLE kh = NULL;
|
||||
ksba_cert_t subject_cert = NULL, issuer_cert = NULL;
|
||||
ksba_isotime_t current_time;
|
||||
ksba_isotime_t exptime;
|
||||
@ -556,6 +556,7 @@ gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert, ksba_isotime_t r_exptime,
|
||||
return 0;
|
||||
}
|
||||
|
||||
kh = keydb_new (0);
|
||||
if (!kh)
|
||||
{
|
||||
log_error (_("failed to allocated keyDB handle\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user