From: Nikos Mavrogiannopoulos Date: Wed, 15 Dec 2004 22:32:28 +0000 (+0000) Subject: corrected bug in gnutls_x509_set_time() X-Git-Tag: gnutls_1_1_23~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5b609fc00e67b9555a7c0dc6297fb08dedaeb44;p=thirdparty%2Fgnutls.git corrected bug in gnutls_x509_set_time() --- diff --git a/lib/x509/common.c b/lib/x509/common.c index feb2566477..fefec90e22 100644 --- a/lib/x509/common.c +++ b/lib/x509/common.c @@ -713,6 +713,7 @@ int _gnutls_x509_set_time(ASN1_TYPE c2, const char *where, time_t tim) _gnutls_str_cat(name, sizeof(name), ".utcTime"); + len = strlen( name); result = asn1_write_value(c2, name, str_time, len); if (result != ASN1_SUCCESS) { gnutls_assert();