X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fattr.c;h=0d696dc02486058b66e229ebe802f936dbba74b9;hb=3a9f96ec0d00344c1fb009ca49090a257d8d42a5;hp=99cd92b2cad32406e94da37b251056adfd08722f;hpb=7e6ad5100c2702b1d56a285bdfb341ddf38c0d76;p=openldap diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index 99cd92b2ca..0d696dc024 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -9,6 +9,7 @@ #endif #include +#include #include #include #include @@ -21,8 +22,6 @@ #include "slap.h" -extern int errno; - void attr_free( Attribute *a ) { @@ -78,7 +77,7 @@ attr_merge_fast( if ( **a == NULL ) { **a = (Attribute *) ch_malloc( sizeof(Attribute) ); - (**a)->a_type = attr_normalize( strdup( type ) ); + (**a)->a_type = attr_normalize( ch_strdup( type ) ); (**a)->a_vals = NULL; (**a)->a_syntax = attr_syntax( type ); (**a)->a_next = NULL; @@ -113,7 +112,7 @@ attr_merge( if ( *a == NULL ) { *a = (Attribute *) ch_malloc( sizeof(Attribute) ); - (*a)->a_type = attr_normalize( strdup( type ) ); + (*a)->a_type = attr_normalize( ch_strdup( type ) ); (*a)->a_vals = NULL; (*a)->a_syntax = attr_syntax( type ); (*a)->a_next = NULL;