diff options
Diffstat (limited to 'lib/ext_dnsname.c')
-rw-r--r-- | lib/ext_dnsname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ext_dnsname.c b/lib/ext_dnsname.c index 3760fe29a4..f20f16779e 100644 --- a/lib/ext_dnsname.c +++ b/lib/ext_dnsname.c @@ -74,6 +74,7 @@ int _gnutls_name_ind_send_params( GNUTLS_STATE state, opaque** data) { case GNUTLS_DNSNAME: if ( (len = strlen(state->security_parameters.extensions.name.dnsname)) > 0) { /* send dnsname */ (*data) = gnutls_malloc(len+3); /* hold the size and the type also */ + if (*data==NULL) return GNUTLS_E_MEMORY_ERROR; WRITEuint16( len+1, *data); (*data)[2] = 0; |