1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Initialize local variable just in case (CID 1596759)

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-05-06 12:20:44 +12:00 committed by Andrew Bartlett
parent 3b90753b55
commit f3ff4915ad

View File

@ -43,7 +43,7 @@ static krb5_error_code kpasswd_change_password(struct kdc_server *kdc,
{
NTSTATUS status;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
enum samPwdChangeReason reject_reason;
enum samPwdChangeReason reject_reason = SAM_PWD_CHANGE_NO_ERROR;
const char *reject_string = NULL;
struct samr_DomInfo1 *dominfo = NULL;
bool ok;