]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/sessionlog.c
remove a componentCertificate attribute from the organizationalPerson objectclass
[openldap] / servers / slapd / sessionlog.c
index edcd5f9f4996cc6e981158da2642638d4a853360..a573be68303237dc31e9b04f6d7d0674a4a013a8 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2003 The OpenLDAP Foundation.
+ * Copyright 2003-2004 The OpenLDAP Foundation.
  * Portions Copyright 2003 IBM Corporation.
  * All rights reserved.
  *
@@ -22,7 +22,6 @@
 #include <ac/string.h>
 #include <ac/socket.h>
 
-#include "ldap_pvt.h"
 #include "lutil.h"
 #include "slap.h"
 #include "lutil_ldap.h"
@@ -45,6 +44,7 @@ slap_send_session_log(
 
        uuid_attr[0].an_desc = NULL;
        uuid_attr[0].an_oc = NULL;
+       uuid_attr[0].an_oc_exclude = 0;
        uuid_attr[0].an_name.bv_len = 0;
        uuid_attr[0].an_name.bv_val = NULL;
        e.e_attrs = NULL;
@@ -86,13 +86,15 @@ slap_send_session_log(
                        rs->sr_entry = &e;
                        rs->sr_attrs = uuid_attr;
                        rs->sr_ctrls = ctrls;
+                       rs->sr_flags = 0;
                        result = send_search_entry( op, rs );
-                       sl_free( ctrls[num_ctrls-1]->ldctl_value.bv_val, op->o_tmpmemctx );
-                       sl_free( ctrls[--num_ctrls], op->o_tmpmemctx );
+                       slap_sl_free( ctrls[num_ctrls-1]->ldctl_value.bv_val, op->o_tmpmemctx );
+                       slap_sl_free( ctrls[--num_ctrls], op->o_tmpmemctx );
                        ctrls[num_ctrls] = NULL;
                        rs->sr_ctrls = NULL;
                }
        }
+       return LDAP_SUCCESS;
 }
 
 int