summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-21 18:11:30 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-08-12 17:25:47 +1200
commit2175024f9750d858847c2c0ad1c84ea9a14e0e02 (patch)
tree89f7eadf139b9271d281280b00a9230da84de17d /source4/rpc_server
parent55c3f8efc3982a49ba154bcb9b797aede0152227 (diff)
downloadsamba-2175024f9750d858847c2c0ad1c84ea9a14e0e02.tar.gz
samba-2175024f9750d858847c2c0ad1c84ea9a14e0e02.tar.bz2
samba-2175024f9750d858847c2c0ad1c84ea9a14e0e02.zip
lsa4: Fix an set but unused variable warning
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c8
1 files changed, 4 insertions, 4 deletions
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;