From: Simon Josefsson Date: Sun, 23 Oct 2005 21:40:40 +0000 (+0000) Subject: Fix zero size send. X-Git-Tag: gnutls_1_2_9~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=683f63e4449df3f83bb1cdc382f7cd918bda010d;p=thirdparty%2Fgnutls.git Fix zero size send. --- diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index 4a49671e02..32d26734e5 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -302,7 +302,7 @@ ssize_t _gnutls_send_int(gnutls_session_t session, content_type_t type, * ok, and means to resume. */ if (session->internals.record_send_buffer.length == 0 && - (sizeofdata == 0 || _data == NULL)) { + (sizeofdata == 0 && _data == NULL)) { gnutls_assert(); return GNUTLS_E_INVALID_REQUEST; }