From: Andreas Schneider Date: Tue, 22 Jun 2021 07:47:23 +0000 (+0200) Subject: s4:kpasswd: Check return code of cli_credentials_set_conf() X-Git-Tag: tevent-0.11.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe9fb2373fe32dcea10b2be3b604c5ce9678333;p=thirdparty%2Fsamba.git s4:kpasswd: Check return code of cli_credentials_set_conf() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/kpasswd-service.c b/source4/kdc/kpasswd-service.c index 8f1679e4a28..061aedc80e5 100644 --- a/source4/kdc/kpasswd-service.c +++ b/source4/kdc/kpasswd-service.c @@ -156,7 +156,10 @@ kdc_code kpasswd_process(struct kdc_server *kdc, goto done; } - cli_credentials_set_conf(server_credentials, kdc->task->lp_ctx); + ok = cli_credentials_set_conf(server_credentials, kdc->task->lp_ctx); + if (!ok) { + goto done; + } ok = cli_credentials_set_username(server_credentials, "kadmin/changepw",