b_sock.c: fix compiler warning.
authorAndy Polyakov <appro@openssl.org>
Sun, 15 Nov 2009 16:52:11 +0000 (16:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 15 Nov 2009 16:52:11 +0000 (16:52 +0000)
crypto/bio/b_sock.c

index 5dc6cf4..886786c 100644 (file)
@@ -822,7 +822,8 @@ int BIO_accept(int sock, char **addr)
        if (sizeof(sa.len.i)!=sizeof(sa.len.s) && sa.len.i==0)
                {
                OPENSSL_assert(sa.len.s<=sizeof(sa.from));
-               sa.len.i = (unsigned int)sa.len.s;
+               sa.len.i = (int)sa.len.s;
+               /* use sa.len.i from this point */
                }
        if (ret == INVALID_SOCKET)
                {