X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fstr2filter.c;h=374ec60b2f45b3e14544fd35a85bf224b49a769d;hb=5631f25839a4a83521993639a96909267ea7bce6;hp=4ce084aad5d52477094cdaac1a35a6f4714345b9;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap
diff --git a/servers/slapd/str2filter.c b/servers/slapd/str2filter.c
index 4ce084aad5..374ec60b2f 100644
--- a/servers/slapd/str2filter.c
+++ b/servers/slapd/str2filter.c
@@ -2,7 +2,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -33,14 +33,7 @@
#include
#include "slap.h"
-#include
-#if 0 /* unused */
-static char *find_matching_paren( const char *s );
-#endif /* unused */
-static Filter *str2list( const char *str, long unsigned int ftype);
-static Filter *str2simple( const char *str);
-static int str2subvals( const char *val, Filter *f);
Filter *
str2filter_x( Operation *op, const char *str )
@@ -51,11 +44,7 @@ str2filter_x( Operation *op, const char *str )
BerElement *ber = (BerElement *)&berbuf;
const char *text = NULL;
-#ifdef NEW_LOGGING
- LDAP_LOG( FILTER, ENTRY, "str2filter: \"%s\"\n", str, 0, 0 );
-#else
Debug( LDAP_DEBUG_FILTER, "str2filter \"%s\"\n", str, 0, 0 );
-#endif
if ( str == NULL || *str == '\0' ) {
return NULL;
@@ -85,7 +74,9 @@ Filter *
str2filter( const char *str )
{
Operation op = {0};
+ Opheader ohdr = {0};
+ op.o_hdr = &ohdr;
op.o_tmpmemctx = NULL;
op.o_tmpmfuncs = &ch_mfuncs;