summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-07-05 11:16:45 +0000
committerGary Lockyer <gary@samba.org>2019-07-24 04:19:27 +0000
commitc7c40e205d432342457b20312f3ebf94e15b9ff6 (patch)
treef6689a949f066b128ce43bc7921011c156d4c219 /source4/dsdb
parent55f18757aae0f7fb137217e42ced6e2e08bfbfa2 (diff)
downloadsamba-c7c40e205d432342457b20312f3ebf94e15b9ff6.tar.gz
s4/dsdb/common: clang: Fix 'Value stored to 'cps_stdin' is never read'
Fixes: source4/dsdb/common/util.c:2125:4: warning: Value stored to 'cps_stdin' is never read <--[clang] cps_stdin = -1; ^ ~~ source4/dsdb/common/util.c:2132:3: warning: Value stored to 'cps_stdin' is never read <--[clang] cps_stdin = -1; Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 13354384f09..db19d484cf4 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2127,14 +2127,12 @@ enum samr_ValidationStatus samdb_check_password(TALLOC_CTX *mem_ctx,
if (write(cps_stdin, utf8_pw, utf8_len) != utf8_len) {
close(cps_stdin);
- cps_stdin = -1;
TALLOC_FREE(password_script);
TALLOC_FREE(event_ctx);
return SAMR_VALIDATION_STATUS_PASSWORD_FILTER_ERROR;
}
close(cps_stdin);
- cps_stdin = -1;
if (!tevent_req_poll(req, event_ctx)) {
TALLOC_FREE(password_script);