summaryrefslogtreecommitdiff
path: root/libdane
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-12-23 12:14:11 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-12-23 12:15:34 +0100
commit5e09fb492e0679aaad1dce2f57f742d75e7d11b2 (patch)
treee8cfc176dada0fe819a63cc94f4cca00a6ae1600 /libdane
parentd335af5a2b7777a03039e9a25de4e79570726324 (diff)
downloadgnutls-5e09fb492e0679aaad1dce2f57f742d75e7d11b2.tar.gz
pass the correct flag to dane_verify_crt_raw()
That doesn't affect anything but logical correctness, as the parameter is ignored.
Diffstat (limited to 'libdane')
-rw-r--r--libdane/dane.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libdane/dane.c b/libdane/dane.c
index 26b9a86eeb..06318e8221 100644
--- a/libdane/dane.c
+++ b/libdane/dane.c
@@ -738,30 +738,30 @@ dane_verify_crt(dane_state_t s,
unsigned int sflags, unsigned int vflags,
unsigned int *verify)
{
- dane_state_t _s = NULL;
+ dane_state_t state = NULL;
dane_query_t r = NULL;
int ret;
*verify = 0;
if (s == NULL) {
- ret = dane_state_init(&_s, sflags);
+ ret = dane_state_init(&state, sflags);
if (ret < 0) {
gnutls_assert();
return ret;
}
} else
- _s = s;
+ state = s;
- ret = dane_query_tlsa(_s, &r, hostname, proto, port);
+ ret = dane_query_tlsa(state, &r, hostname, proto, port);
if (ret < 0) {
gnutls_assert();
goto cleanup;
}
- ret = dane_verify_crt_raw(s, chain, chain_size, chain_type,
+ ret = dane_verify_crt_raw(state, chain, chain_size, chain_type,
r, sflags, vflags, verify);
cleanup:
- if (s == NULL)
- dane_state_deinit(_s);
+ if (state != NULL)
+ dane_state_deinit(state);
if (r != NULL)
dane_query_deinit(r);
return ret;