version 1.125.2.2, 2005/07/11 05:55:30
|
version 1.125.2.3, 2005/08/09 21:03:58
|
Line 1
|
Line 1
|
/* filter.c - routines for parsing and dealing with filters */ |
/* filter.c - routines for parsing and dealing with filters */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.128 2005/07/04 03:29:12 hallvard Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.129 2005/07/18 04:22:34 hallvard Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2005 The OpenLDAP Foundation. |
* Copyright 1998-2005 The OpenLDAP Foundation. |
Line 779 filter_escape_value_x(
|
Line 779 filter_escape_value_x(
|
void *ctx ) |
void *ctx ) |
{ |
{ |
ber_len_t i; |
ber_len_t i; |
assert( in ); |
assert( in != NULL ); |
assert( out ); |
assert( out != NULL ); |
|
|
i = in->bv_len * 3 + 1; |
i = in->bv_len * 3 + 1; |
out->bv_val = ctx ? slap_sl_malloc( i, ctx ) : ch_malloc( i ); |
out->bv_val = ctx ? slap_sl_malloc( i, ctx ) : ch_malloc( i ); |