From: Nikos Mavrogiannopoulos Date: Wed, 19 Feb 2014 14:01:09 +0000 (+0100) Subject: corrected empty name check X-Git-Tag: gnutls_3_3_0pre0~137 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b4831cf689141846ab4cdf00eba1e25f58de9bd3;p=thirdparty%2Fgnutls.git corrected empty name check --- diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c index ee9b2d0231..41e2f6bc88 100644 --- a/lib/x509/extensions.c +++ b/lib/x509/extensions.c @@ -831,9 +831,9 @@ _gnutls_write_general_name(ASN1_TYPE ext, const char *ext_name, if (data == NULL) { if (data_size == 0) - return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST); - else data = (void*)""; + else + return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST); } switch (type) {