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

libcli/auth: fix usage of an uninitialized variable in netlogon_creds_cli_check_caps()

If status is RPC_PROCNUM_OUT_OF_RANGE, result might be uninitialized.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2014-01-08 12:04:22 +01:00
parent f8363dd22a
commit 0e62f32795

View File

@ -1390,7 +1390,7 @@ struct netlogon_creds_cli_check_state {
};
static void netlogon_creds_cli_check_cleanup(struct tevent_req *req,
NTSTATUS status);
NTSTATUS status);
static void netlogon_creds_cli_check_locked(struct tevent_req *subreq);
struct tevent_req *netlogon_creds_cli_check_send(TALLOC_CTX *mem_ctx,
@ -1582,7 +1582,7 @@ static void netlogon_creds_cli_check_caps(struct tevent_req *subreq)
* with the next request as the sequence number processing
* gets out of sync.
*/
netlogon_creds_cli_check_cleanup(req, result);
netlogon_creds_cli_check_cleanup(req, status);
tevent_req_done(req);
return;
}