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>
|
2004-10-04 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* misc.c (setup_pinentry_env): Try hard to set a default for GPG_TTY.
|
* 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;
|
int rc = 0, depth = 0, maxdepth;
|
||||||
char *issuer = NULL;
|
char *issuer = NULL;
|
||||||
char *subject = NULL;
|
char *subject = NULL;
|
||||||
KEYDB_HANDLE kh = keydb_new (0);
|
KEYDB_HANDLE kh = NULL;
|
||||||
ksba_cert_t subject_cert = NULL, issuer_cert = NULL;
|
ksba_cert_t subject_cert = NULL, issuer_cert = NULL;
|
||||||
ksba_isotime_t current_time;
|
ksba_isotime_t current_time;
|
||||||
ksba_isotime_t exptime;
|
ksba_isotime_t exptime;
|
||||||
@ -555,7 +555,8 @@ gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert, ksba_isotime_t r_exptime,
|
|||||||
log_info ("WARNING: bypassing certificate chain validation\n");
|
log_info ("WARNING: bypassing certificate chain validation\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kh = keydb_new (0);
|
||||||
if (!kh)
|
if (!kh)
|
||||||
{
|
{
|
||||||
log_error (_("failed to allocated keyDB handle\n"));
|
log_error (_("failed to allocated keyDB handle\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user