--- embedaddon/dhcp/dst/hmac_link.c 2012/02/21 22:30:18 1.1 +++ embedaddon/dhcp/dst/hmac_link.c 2013/07/22 12:54:39 1.1.1.1.2.1 @@ -1,6 +1,6 @@ #ifdef HMAC_MD5 #ifndef LINT -static const char rcsid[] = "$Header: /usr/local/www/users/anoncvs/cvs/embedaddon/dhcp/dst/hmac_link.c,v 1.1 2012/02/21 22:30:18 misho Exp $"; +static const char rcsid[] = "$Header: /usr/local/www/users/anoncvs/cvs/embedaddon/dhcp/dst/hmac_link.c,v 1.1.1.1.2.1 2013/07/22 12:54:39 misho Exp $"; #endif /* * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc. @@ -216,7 +216,7 @@ dst_buffer_to_hmac_md5(DST_KEY *dkey, const u_char *ke MD5_CTX ctx; unsigned local_keylen = keylen; - if (dkey == NULL || key == NULL || keylen < 0) + if (dkey == NULL || key == NULL) return (-1); if ((hkey = (HMAC_Key *) malloc(sizeof(HMAC_Key))) == NULL) @@ -299,7 +299,7 @@ dst_hmac_md5_key_to_file_format(const DST_KEY *dkey, c b_len = buff_len - (bp - buff); len = b64_ntop(key, key_len, bp, b_len); - if (len < 0) + if ((int) len < 0) return (-1); bp += len; *(bp++) = '\n';