diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-12-05 19:58:42 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-12-05 19:58:42 +0100 |
commit | 0f1cf61a696a03571e8c1ba4bd8fc7a9036fbacf (patch) | |
tree | 42343ef55e0fe3eeffd347dbe9a70228593536c5 /libdane/dane.c | |
parent | 37a4946799c2632f9cd911ba982a68a9b649f9d5 (diff) | |
download | gnutls-0f1cf61a696a03571e8c1ba4bd8fc7a9036fbacf.tar.gz |
dane: use the new _gnutls_buffer_to_datum
Diffstat (limited to 'libdane/dane.c')
-rw-r--r-- | libdane/dane.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libdane/dane.c b/libdane/dane.c index 83204148a1..162bb24bab 100644 --- a/libdane/dane.c +++ b/libdane/dane.c @@ -1031,7 +1031,6 @@ dane_verification_status_print(unsigned int status, gnutls_datum_t * out, unsigned int flags) { gnutls_buffer_st str; - int ret; _gnutls_buffer_init(&str); @@ -1056,9 +1055,5 @@ dane_verification_status_print(unsigned int status, _ ("There were no DANE information. ")); - ret = _gnutls_buffer_to_datum(&str, out); - if (out->size > 0) - out->size--; - - return ret; + return _gnutls_buffer_to_datum(&str, out, 1); } |