]> git.sur5r.net Git - openldap/commitdiff
Catch \ at end of filter
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 28 Aug 1999 22:15:16 +0000 (22:15 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 28 Aug 1999 22:15:16 +0000 (22:15 +0000)
libraries/libldap/search.c

index 50c46cfa20543dd6d864708842f75e3f8d310ca1..bb9f1c28f86ad0d45294e377392459fa7d682a6b 100644 (file)
@@ -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++;