]> git.sur5r.net Git - openldap/commitdiff
Fix unhex
authorHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000 (08:56 -0700)
committerHoward Chu <hyc@symas.com>
Fri, 20 Jun 2014 15:56:52 +0000 (08:56 -0700)
libraries/liblmdb/mdb_load.c

index 27ffc2801f2be0d8973b9be53f0d135aab0988fe..967b0ff249eae02d7fcb75abb5d5f83c978da0fc 100644 (file)
@@ -128,11 +128,11 @@ static int unhex(unsigned char *c2)
        int x, c;
        x = *c2++ & 0x4f;
        if (x & 0x40)
-               x -= 54;
+               x -= 55;
        c = x << 4;
        x = *c2 & 0x4f;
        if (x & 0x40)
-               x -= 54;
+               x -= 55;
        c |= x;
        return c;
 }