From: Christof Schmitt Date: Mon, 22 May 2017 19:31:35 +0000 (-0700) Subject: ctdb: Fix hex to int conversion in h2i X-Git-Tag: tdb-1.3.17~470 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81de8f0641484729e4fbfc055a1a52dcd15cd32e;p=thirdparty%2Fsamba.git ctdb: Fix hex to int conversion in h2i Signed-off-by: Christof Schmitt Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index f96167f9366..1844f1ff196 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -587,7 +587,7 @@ static int h2i(char h) return h - 'a' + 10; } if (h >= 'A' && h <= 'F') { - return h - 'f' + 10; + return h - 'A' + 10; } return h - '0'; }