diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 14:01:28 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 14:01:28 +0200 |
commit | b3283f26ce46a3161277189f0dc958b2a690118a (patch) | |
tree | 8ccae676e50b9c723b8b2cd6109e66e349d8b321 /libdane | |
parent | 86ff57e8f9f5f33d820b64b5cfdc60cb830b6d94 (diff) | |
download | gnutls-b3283f26ce46a3161277189f0dc958b2a690118a.tar.gz |
Corrected dane_verify_crt() to not deinitialize any input state.
Diffstat (limited to 'libdane')
-rw-r--r-- | libdane/dane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdane/dane.c b/libdane/dane.c index 06318e8221..79be0271d0 100644 --- a/libdane/dane.c +++ b/libdane/dane.c @@ -760,7 +760,7 @@ dane_verify_crt(dane_state_t s, ret = dane_verify_crt_raw(state, chain, chain_size, chain_type, r, sflags, vflags, verify); cleanup: - if (state != NULL) + if (state != s) dane_state_deinit(state); if (r != NULL) dane_query_deinit(r); |