summaryrefslogtreecommitdiff
path: root/ctdb/tools
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2017-05-22 12:31:35 -0700
committerAmitay Isaacs <amitay@samba.org>2018-12-10 02:01:14 +0100
commit81de8f0641484729e4fbfc055a1a52dcd15cd32e (patch)
tree3a4f1f6b9dd6292ef2267b7234afe625706bb9b7 /ctdb/tools
parent90de1431b91231c2ef0013fb3cfac537ca9830f1 (diff)
downloadsamba-81de8f0641484729e4fbfc055a1a52dcd15cd32e.tar.gz
ctdb: Fix hex to int conversion in h2i
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tools')
-rw-r--r--ctdb/tools/ctdb.c2
1 files changed, 1 insertions, 1 deletions
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';
}