From: Nikos Mavrogiannopoulos Date: Wed, 13 Apr 2016 07:03:56 +0000 (+0200) Subject: gnutls_x509_crt_get_key_purpose_oid: copy the OID as a null-terminated string X-Git-Tag: gnutls_3_5_0~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fffd3541c64dc6a09a6d03a8419fe81b43f171e;p=thirdparty%2Fgnutls.git gnutls_x509_crt_get_key_purpose_oid: copy the OID as a null-terminated string --- diff --git a/lib/x509/x509.c b/lib/x509/x509.c index a5de08c862..fae63e09d9 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -3046,7 +3046,7 @@ gnutls_x509_crt_get_key_purpose_oid(gnutls_x509_crt_t cert, goto cleanup; } - ret = _gnutls_copy_data(&out, oid, oid_size); + ret = _gnutls_copy_string(&out, oid, oid_size); if (ret < 0) { gnutls_assert(); goto cleanup;