]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
set the appropriate direction when _gnutls_io_write_flush() is called
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 29 Jan 2015 13:21:18 +0000 (14:21 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 29 Jan 2015 13:21:22 +0000 (14:21 +0100)
lib/gnutls_buffers.c

index 0641d888cd92fc5a8a6d14642cb28164cc354699..c9ae0a502efe354c55ab272036f632baaf6cab2a 100644 (file)
@@ -661,6 +661,7 @@ ssize_t _gnutls_io_write_flush(gnutls_session_t session)
        int i = 0;
        mbuffer_st *cur;
 
+       session->internals.direction = 1;
        _gnutls_write_log("WRITE FLUSH: %d bytes in buffer.\n",
                          (int) send_buffer->byte_length);