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 5dc6cf4595a6719c46008a15bb1499841907ab0e..886786cf6464f2b39809c319f461888420de25fd 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)
                {