diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-13 09:03:56 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-13 11:30:26 +0200 |
commit | 2fffd3541c64dc6a09a6d03a8419fe81b43f171e (patch) | |
tree | 7d8b98119ff2686b9d4073f13331373883cacba9 | |
parent | 9d12348802d4fdae68ff14c70c1e30f9679b490e (diff) | |
download | gnutls-2fffd3541c64dc6a09a6d03a8419fe81b43f171e.tar.gz |
gnutls_x509_crt_get_key_purpose_oid: copy the OID as a null-terminated string
-rw-r--r-- | lib/x509/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |