}
retval->timestamp = unix2gentime(val->timestamp, error);
if (!retval->timestamp) {
+ errout:
free_KRB5_EncKrbPrivPart(retval);
return(0);
}
retval->msec = val->msec;
- retval->addresses = krb5_address2KRB5_HostAddresses(val->addresses, error);
- if (!retval->addresses) {
- free_KRB5_EncKrbPrivPart(retval);
- return(0);
+ 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;
}
-
return(retval);
}
}
retval->timestamp = gentime2unix(val->timestamp, error);
if (*error) {
+ errout:
krb5_free_priv_enc_part(retval);
return(0);
}
retval->msec = val->msec;
- retval->addresses = KRB5_HostAddresses2krb5_address(val->addresses, error);
- if (!retval->addresses) {
- krb5_free_priv_enc_part(retval);
- return(0);
+ 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;
}
return(retval);
}