bss_dgram.c: fix typos in Windows code.
authorAndy Polyakov <appro@openssl.org>
Sun, 1 Jul 2012 09:12:23 +0000 (09:12 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 1 Jul 2012 09:12:23 +0000 (09:12 +0000)
crypto/bio/bss_dgram.c

index 9911df52ab81e323c3bb9dee734364f276fd2bc7..bb64e88a4c983a0f4c77ef68db7bbbacb252ee07 100644 (file)
@@ -199,7 +199,7 @@ static void dgram_adjust_rcv_timeout(BIO *b)
 
                sz.i = sizeof(timeout);
                if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
-                                          (void*)&timeout, &sz) < 0)
+                                          (void*)&timeout, &sz.i) < 0)
                        { perror("getsockopt"); }
                else
                        {
@@ -669,7 +669,7 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
 
                sz.i = sizeof(timeout);
                if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
-                       (void*)&timeout, &sz) < 0)
+                       (void*)&timeout, &sz.i) < 0)
                        { perror("getsockopt"); ret = -1; }
                else
                        {
@@ -718,7 +718,7 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
 
                sz.i = sizeof(timeout);
                if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO,
-                       (void*)&timeout, &sz) < 0)
+                       (void*)&timeout, &sz.i) < 0)
                        { perror("getsockopt"); ret = -1; }
                else
                        {