From 635a666359d232305b1e264cb1e635e64212c615 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 28 Aug 1999 22:06:52 +0000 Subject: [PATCH] Fix typo in filter_value_unescape() --- libraries/libldap/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 808fb81819..56b07a7df2 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -458,7 +458,9 @@ filter_value_unescape( char *fval ) /* escape at end of string */ return -1; - } else if (( v1 = hex2value( fval[v] )) < 0 ) { + } + + if (( v1 = hex2value( fval[v] )) >= 0 ) { /* LDAPv3 escape */ if (( v2 = hex2value( fval[v+1] )) < 0 ) { -- 2.39.5