]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix zero size send.
authorSimon Josefsson <simon@josefsson.org>
Sun, 23 Oct 2005 21:40:40 +0000 (21:40 +0000)
committerSimon Josefsson <simon@josefsson.org>
Sun, 23 Oct 2005 21:40:40 +0000 (21:40 +0000)
lib/gnutls_record.c

index 4a49671e02c44725e871095a56f5661fd7631fc0..32d26734e5faf0b97e6e4742705d27ccca5de107 100644 (file)
@@ -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;
     }