From 2175024f9750d858847c2c0ad1c84ea9a14e0e02 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 21 Jun 2013 18:11:30 +0200 Subject: lsa4: Fix an set but unused variable warning Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- source4/rpc_server/lsa/dcesrv_lsa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/rpc_server') diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 8d1a8565f1..d8a5aefcd9 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -3342,7 +3342,7 @@ static NTSTATUS dcesrv_lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLO if (!r->out.old_val) { return NT_STATUS_NO_MEMORY; } - prior_val = ldb_msg_find_ldb_val(res[0], "priorValue"); + prior_val = ldb_msg_find_ldb_val(msg, "priorValue"); if (prior_val && prior_val->length) { secret.data = prior_val->data; @@ -3368,7 +3368,7 @@ static NTSTATUS dcesrv_lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLO if (!r->out.old_mtime) { return NT_STATUS_NO_MEMORY; } - *r->out.old_mtime = ldb_msg_find_attr_as_uint64(res[0], "priorSetTime", 0); + *r->out.old_mtime = ldb_msg_find_attr_as_uint64(msg, "priorSetTime", 0); } if (r->in.new_val) { @@ -3378,7 +3378,7 @@ static NTSTATUS dcesrv_lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLO return NT_STATUS_NO_MEMORY; } - new_val = ldb_msg_find_ldb_val(res[0], "currentValue"); + new_val = ldb_msg_find_ldb_val(msg, "currentValue"); if (new_val && new_val->length) { secret.data = new_val->data; @@ -3404,7 +3404,7 @@ static NTSTATUS dcesrv_lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLO if (!r->out.new_mtime) { return NT_STATUS_NO_MEMORY; } - *r->out.new_mtime = ldb_msg_find_attr_as_uint64(res[0], "lastSetTime", 0); + *r->out.new_mtime = ldb_msg_find_attr_as_uint64(msg, "lastSetTime", 0); } return NT_STATUS_OK; -- cgit