[libsoup] Fix cut+pasto in win32 gnutls code



commit fd5b785fbaad81f99c6c8b8bcb52028990e19120
Author: Dan Winship <danw gnome org>
Date:   Mon Jul 13 11:31:49 2009 -0400

    Fix cut+pasto in win32 gnutls code

 libsoup/soup-gnutls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-gnutls.c b/libsoup/soup-gnutls.c
index 947925f..0326c6b 100644
--- a/libsoup/soup-gnutls.c
+++ b/libsoup/soup-gnutls.c
@@ -408,7 +408,7 @@ soup_gnutls_push_func (gnutls_transport_ptr_t transport_data,
 
 	nwrote = send (chan->sockfd, buf, buflen, 0);
 #ifdef G_OS_WIN32
-	chan->eagain = (nread == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK);
+	chan->eagain = (nwrote == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK);
 #else
 	chan->eagain = (nwrote == -1 && errno == EAGAIN);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]