Use ber_strdup() as needed.

This commit is contained in:
Kurt Zeilenga 1999-06-02 22:33:57 +00:00
parent 1f52f6e43e
commit f61625264f

View file

@ -610,7 +610,7 @@ addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen )
exit( 1 );
}
pmods[ i ]->mod_op = modop;
if (( pmods[ i ]->mod_type = strdup( attr )) == NULL ) {
if (( pmods[ i ]->mod_type = ber_strdup( attr )) == NULL ) {
perror( "strdup" );
exit( 1 );
}