]> andersk Git - gssapi-openssh.git/blobdiff - openssh/mac.c
Import of OpenSSH 3.8p1
[gssapi-openssh.git] / openssh / mac.c
index ab9a03d84e867379aa8386d9b1b4a137c9f14293..097f0b93bf87f08b7d5767a2153ea787a0515d3d 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: mac.c,v 1.5 2002/05/16 22:02:50 markus Exp $");
+RCSID("$OpenBSD: mac.c,v 1.6 2003/09/18 13:02:21 miod Exp $");
 
 #include <openssl/hmac.h>
 
@@ -77,7 +77,7 @@ mac_compute(Mac *mac, u_int32_t seqno, u_char *data, int datalen)
 
        if (mac->key == NULL)
                fatal("mac_compute: no key");
-       if (mac->mac_len > sizeof(m))
+       if ((u_int)mac->mac_len > sizeof(m))
                fatal("mac_compute: mac too long");
        HMAC_Init(&c, mac->key, mac->key_len, mac->md);
        PUT_32BIT(b, seqno);
This page took 0.031112 seconds and 4 git commands to generate.