]> andersk Git - gssapi-openssh.git/blobdiff - openssh/sshconnect1.c
merged OpenSSH 4.2p1 to trunk
[gssapi-openssh.git] / openssh / sshconnect1.c
index 6e2e31c0285bf1c712fc93585b1df9316346bf66..bd05723c7462bd5da401d36cf9a02eeaaa741948 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect1.c,v 1.60 2004/07/28 09:40:29 markus Exp $");
+RCSID("$OpenBSD: sshconnect1.c,v 1.61 2005/06/17 02:44:33 djm Exp $");
 
 #include <openssl/bn.h>
 #include <openssl/md5.h>
@@ -162,7 +162,7 @@ respond_to_rsa_challenge(BIGNUM * challenge, RSA * prv)
        /* Compute the response. */
        /* The response is MD5 of decrypted challenge plus session id. */
        len = BN_num_bytes(challenge);
-       if (len <= 0 || len > sizeof(buf))
+       if (len <= 0 || (u_int)len > sizeof(buf))
                packet_disconnect(
                    "respond_to_rsa_challenge: bad challenge length %d", len);
 
This page took 0.031504 seconds and 4 git commands to generate.