signed/unsigned mismatch (VC++)
authorUlf Möller <ulf@openssl.org>
Fri, 25 Feb 2000 14:03:21 +0000 (14:03 +0000)
committerUlf Möller <ulf@openssl.org>
Fri, 25 Feb 2000 14:03:21 +0000 (14:03 +0000)
Submitted by: Peter 'Luna' Runestig" <peter+openssl-users@runestig.com>

ssl/s3_pkt.c

index 97501dcac8e169be652d6b4d67afd2979f85e2f8..9d93d6910c3b100fc839e6e378454b6e1d9b8ab7 100644 (file)
@@ -846,7 +846,7 @@ start:
                if (dest_maxlen > 0)
                        {
                        n = dest_maxlen - *dest_len; /* available space in 'dest' */
                if (dest_maxlen > 0)
                        {
                        n = dest_maxlen - *dest_len; /* available space in 'dest' */
-                       if (rr->length < n)
+                       if (rr->length < (unsigned int) n)
                                n = rr->length; /* available bytes */
 
                        /* now move 'n' bytes: */
                                n = rr->length; /* available bytes */
 
                        /* now move 'n' bytes: */