Fix typo
authorSimo Sorce <idra@samba.org>
Tue, 9 Mar 2010 21:41:44 +0000 (16:41 -0500)
committerSimo Sorce <idra@samba.org>
Tue, 9 Mar 2010 21:42:05 +0000 (16:42 -0500)
source3/lib/tldap.c

index 3b256c4a426d35db3890cdd9ddb35721f6d77a95..c8f3af7982b799f4b4e3fff3ad740b9bf58eedd4 100644 (file)
@@ -1080,8 +1080,8 @@ static int tldap_hex2char(const char *x)
                else if (h1 >= '0') c = h1 - (int)'0';
                c = c << 4;
                if (h2 >= 'a') c += h2 - (int)'a' + 10;
-               else if (h1 >= 'A') c += h2 - (int)'A' + 10;
-               else if (h1 >= '0') c += h2 - (int)'0';
+               else if (h2 >= 'A') c += h2 - (int)'A' + 10;
+               else if (h2 >= '0') c += h2 - (int)'0';
 
                return c;
        }