]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/str2filter.c
remove all referral specific code; now referrals can be used by defining appropriate...
[openldap] / servers / slapd / str2filter.c
index f8b9cfcdf3a6d8e20638a600c70aa5de673aa2fb..b6aa778c6b85fd71bd1567eeb4d47b7555d596bd 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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,7 +33,6 @@
 #include <ac/socket.h>
 
 #include "slap.h"
-#include <ldap_pvt.h>
 
 #if 0 /* unused */
 static char    *find_matching_paren( const char *s );
@@ -81,7 +80,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;