state |= GOT_TIME;
break;
case T_DN:
- re->re_dn = calloc( 1, len + 1 );
+ re->re_dn = ch_malloc( len + 1 );
memcpy( re->re_dn, value, len );
state |= GOT_DN;
break;
sizeof( Mi ) * ( nml + 2 ));
re->re_mods[ nml ].mi_type = strdup( type );
if ( value != NULL ) {
- re->re_mods[ nml ].mi_val = calloc( 1, len + 1 );
+ re->re_mods[ nml ].mi_val = ch_malloc( len + 1 );
memcpy( re->re_mods[ nml ].mi_val, value, len );
re->re_mods[ nml ].mi_len = len;
} else {