1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s4:kdc: Move return code checks closer to where the return codes are set

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-11-07 16:22:41 +13:00 committed by Andrew Bartlett
parent 1c1d402f36
commit 2733cd7b4c

View File

@ -2933,6 +2933,9 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
new_pac,
type,
(type_data.data != NULL) ? &type_data : &null_data);
if (code != 0) {
goto done;
}
} else {
code = krb5_pac_get_buffer(context,
client.pac,
@ -2950,10 +2953,9 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
type,
(type_data.data != NULL) ? &type_data : &null_data);
smb_krb5_free_data_contents(context, &type_data);
}
if (code != 0) {
goto done;
if (code != 0) {
goto done;
}
}
}