return(0);
}
retval->msec = val->msec;
- retval->addresses = krb5_address2KRB5_HostAddresses(val->addresses, error);
- if (!retval->addresses) {
+ retval->s__address = krb5_addr2KRB5_HostAddress(val->s_address, error);
+ if (!retval->s__address) {
+ goto errout;
+ }
+ retval->r__address = krb5_addr2KRB5_HostAddress(val->r_address, error);
+ if (!retval->r__address) {
goto errout;
}
retval->checksum = krb5_checksum2KRB5_Checksum(val->checksum, error);
return(0);
}
retval->msec = val->msec;
- retval->addresses = KRB5_HostAddresses2krb5_address(val->addresses, error);
- if (!retval->addresses) {
+ retval->s_address = KRB5_HostAddress2krb5_addr(val->s__address, error);
+ if (!retval->s_address) {
+ goto errout;
+ }
+ retval->r_address = KRB5_HostAddress2krb5_addr(val->r__address, error);
+ if (!retval->r_address) {
goto errout;
}
retval->checksum = KRB5_Checksum2krb5_checksum(val->checksum, error);