version 1.1.2.10, 2006/05/09 17:43:12
|
version 1.1.2.11, 2006/09/14 22:43:55
|
Line 1
|
Line 1
|
/* translucent.c - translucent proxy module */ |
/* translucent.c - translucent proxy module */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/translucent.c,v 1.1.2.9 2006/01/17 19:09:52 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/translucent.c,v 1.1.2.10 2006/05/09 17:43:12 kurt Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 2004-2006 The OpenLDAP Foundation. |
* Copyright 2004-2006 The OpenLDAP Foundation. |
Line 296 static int translucent_modify(Operation
|
Line 296 static int translucent_modify(Operation
|
m->sml_desc->ad_cname.bv_val, 0, 0); |
m->sml_desc->ad_cname.bv_val, 0, 0); |
for(mm = op->orm_modlist; mm->sml_next != m; mm = mm->sml_next); |
for(mm = op->orm_modlist; mm->sml_next != m; mm = mm->sml_next); |
mm->sml_next = m->sml_next; |
mm->sml_next = m->sml_next; |
mm = m; |
m->sml_next = NULL; |
m = m->sml_next; |
slap_mods_free(m, 1); |
mm->sml_next = NULL; /* hack */ |
m = mm; |
slap_mods_free(mm, 1); |
continue; |
if(m) continue; |
|
} |
} |
m->sml_op = LDAP_MOD_ADD; |
m->sml_op = LDAP_MOD_ADD; |
} |
} |
Line 360 release:
|
Line 359 release:
|
a = ch_calloc(1, sizeof(Attribute)); |
a = ch_calloc(1, sizeof(Attribute)); |
a->a_desc = m->sml_desc; |
a->a_desc = m->sml_desc; |
a->a_vals = m->sml_values; |
a->a_vals = m->sml_values; |
a->a_nvals = m->sml_nvalues; |
a->a_nvals = m->sml_nvalues ? m->sml_nvalues : a->a_vals; |
a->a_next = ax; |
a->a_next = ax; |
ax = a; |
ax = a; |
} |
} |