From e83d3091807de4060c0f7654609c0ba97c607698 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Mon, 24 Feb 2014 13:57:07 +0000 Subject: Vendor import of BIND 9.8.7 Approved by: delphij (mentor, implicit) Sponsored by: DK Hostmaster A/S --- lib/dns/openssldh_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/dns/openssldh_link.c') diff --git a/lib/dns/openssldh_link.c b/lib/dns/openssldh_link.c index 9fe9bb52524f..aaaf69c00ffe 100644 --- a/lib/dns/openssldh_link.c +++ b/lib/dns/openssldh_link.c @@ -1,5 +1,5 @@ /* - * Portions Copyright (C) 2004-2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") + * Portions Copyright (C) 2004-2009, 2011-2013 Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -608,11 +608,11 @@ BN_fromhex(BIGNUM *b, const char *str) { s = strchr(hexdigits, tolower((unsigned char)str[i])); RUNTIME_CHECK(s != NULL); - high = s - hexdigits; + high = (unsigned int)(s - hexdigits); s = strchr(hexdigits, tolower((unsigned char)str[i + 1])); RUNTIME_CHECK(s != NULL); - low = s - hexdigits; + low = (unsigned int)(s - hexdigits); data[i/2] = (unsigned char)((high << 4) + low); } -- cgit v1.2.3