From 53002fc3ce41f15647293d061492b30777a28deb Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 2 Jan 2004 06:10:51 +0000 Subject: [PATCH] Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string() --- servers/slapd/slapi/slapi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 29fa81010d..de62de247f 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -309,7 +309,7 @@ slapi_entry_attr_get_charptr( const Slapi_Entry *e, const char *type ) } if ( attr->a_vals != NULL && attr->a_vals[0].bv_len != 0 ) { - return slapi_ch_strdup( attr->a_vals[0].bv_val ); + return (char *)slapi_value_get_string( attr->a_vals ); } return NULL; -- 2.39.5