summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-10-17 23:53:40 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-10-17 23:53:40 +0200
commit1161028cc40ddae74a81d9300de9728e9b039564 (patch)
tree6aaf7ad8849f228d569e2417efe92acb5d1d5aa5 /lib/x509
parent733960deeac69f70e64b3e0a1c13b345729756f1 (diff)
downloadgnutls-1161028cc40ddae74a81d9300de9728e9b039564.tar.gz
Corrected bug in gnutls_x509_data2hex. Report and fix by Vincent Untz.
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/common.c b/lib/x509/common.c
index 6bb474652e..cfbcdff3a6 100644
--- a/lib/x509/common.c
+++ b/lib/x509/common.c
@@ -390,6 +390,7 @@ _gnutls_x509_data2hex (const opaque * data, size_t data_size,
if (out)
{
out[0] = '#';
+ out[1] = 0;
_gnutls_str_cat (out, *sizeof_out, res);
}