mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Fix unhex
This commit is contained in:
parent
21b51cb746
commit
1a72b19e26
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue