PATCH: WS_setsockopt

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

 



Hi,

This patch checks for a null pointer in WS_setsockopt.
This means the site synchronisation function in Dreamweaver MX works.

Kester


--- dlls/winsock/socket.c       13 May 2003 04:43:44 -0000      1.126
+++ dlls/winsock/socket.c       15 May 2003 04:30:48 -0000
@@ -2620,7 +2620,7 @@
                    is null?? */
                 optval = (char*)&linger;
                 optlen = sizeof(struct linger);
-            } else if (optlen < sizeof(int)){
+            } else if (optval && optlen < sizeof(int)){
                 woptval= *((INT16 *) optval);
                 optval= (char*) &woptval;
                 optlen=sizeof(int);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux