if (to) { /* if user exists check other stuff */
afs_int32 sto;
struct kaentry sentry;
+
+ unsigned char misc_auth_bytes[4];
+ afs_uint32 temp; /* unsigned for safety */
+ afs_uint32 pwexpires;
+
save_principal(udpAuthPrincipal, name, inst, 0);
tgt = ((strcmp(sname, KA_TGS_NAME) == 0)
goto abort;
}
- if (tentry.misc_auth_bytes) {
- unsigned char misc_auth_bytes[4];
- afs_uint32 temp; /* unsigned for safety */
- afs_uint32 pwexpires;
-
- memcpy(&temp, tentry.misc_auth_bytes, sizeof(afs_uint32));
- temp = ntohl(temp);
- unpack_long(temp, misc_auth_bytes);
- pwexpires = misc_auth_bytes[0];
- if (pwexpires) {
- pwexpires =
- ntohl(tentry.change_password_time) +
- 24 * 60 * 60 * pwexpires;
- if (pwexpires < now) {
- code = KERB_ERR_AUTH_EXP; /* was KAPWEXPIRED */
- goto abort;
- }
+ memcpy(&temp, tentry.misc_auth_bytes, sizeof(afs_uint32));
+ temp = ntohl(temp);
+ unpack_long(temp, misc_auth_bytes);
+ pwexpires = misc_auth_bytes[0];
+ if (pwexpires) {
+ pwexpires =
+ ntohl(tentry.change_password_time) +
+ 24 * 60 * 60 * pwexpires;
+ if (pwexpires < now) {
+ code = KERB_ERR_AUTH_EXP; /* was KAPWEXPIRED */
+ goto abort;
}
}