case '\\':
if( s[1] == '\0' ) return NULL;
+
if( LDAP_HEX( s[1] ) && LDAP_HEX( s[2] ) ) {
s+=2;
- }
- switch( s[1] ) {
+ } else switch( s[1] ) {
default:
return NULL;
}
}
- return s;
+ return (char *) s;
}
/* unescape filter value */
* Note: tags in a choice are always explicit
*/
- Debug( LDAP_DEBUG_TRACE, "put_filter \"%s\"\n", str, 0, 0 );
+ Debug( LDAP_DEBUG_TRACE, "put_filter: \"%s\"\n", str, 0, 0 );
parens = 0;
while ( *str ) {
ber_tag_t ftype;
int rc = -1;
- Debug( LDAP_DEBUG_TRACE, "put_simple_filter \"%s\"\n",
+ Debug( LDAP_DEBUG_TRACE, "put_simple_filter: \"%s\"\n",
str, 0, 0 );
str = LDAP_STRDUP( str );