From: Hallvard Furuseth Date: Sat, 28 Aug 1999 22:15:16 +0000 (+0000) Subject: Catch \ at end of filter X-Git-Tag: TWEB_OL_BASE~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66704f67b92035a7e49810fca450e4bb9e9db37c;p=openldap Catch \ at end of filter --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 50c46cfa20..bb9f1c28f8 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -426,6 +426,8 @@ find_wildcard( char *s ) case '\\': s++; /* skip over escape */ + if ( *s == '\0' ) + return NULL; /* escape at end of string */ if( hex2value( s[0] ) >= 0 && hex2value( s[1] ) >= 0 ) { /* skip over lead digit of two hex digit code */ s++;