[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10505 - GNUnet/src/util/win
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10505 - GNUnet/src/util/win |
Date: |
Sat, 6 Mar 2010 10:59:55 +0100 |
Author: durner
Date: 2010-03-06 10:59:55 +0100 (Sat, 06 Mar 2010)
New Revision: 10505
Modified:
GNUnet/src/util/win/win.cc
Log:
fix possible segfault, thanks to LRN on #gnunet
Modified: GNUnet/src/util/win/win.cc
===================================================================
--- GNUnet/src/util/win/win.cc 2010-03-05 22:07:38 UTC (rev 10504)
+++ GNUnet/src/util/win/win.cc 2010-03-06 09:59:55 UTC (rev 10505)
@@ -45,6 +45,8 @@
static HANDLE hOLLock;
static TOLList lstOL;
+/* ignored */
+static DWORD dwSent;
int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows);
@@ -850,7 +852,7 @@
pending = 0;
- iRet = WSASendTo(s->handle, &wbuf, 1, NULL, 0, to, tolen, ol, NULL);
+ iRet = WSASendTo(s->handle, &wbuf, 1, &dwSent, 0, to, tolen, ol, NULL);
err = WSAGetLastError();
if (iRet == SOCKET_ERROR) {
if (err == WSA_IO_PENDING) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10505 - GNUnet/src/util/win,
gnunet <=