summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-08-17 10:33:58 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:56 +0200
commitbdee9458f66210a06eb29836a66e14d5d8a7fd33 (patch)
treede7f63ff488d61423ff57c1450e0d29479759238 /source3/smbd
parent6656de134612935ed12643064f307cb995cd5cbc (diff)
downloadsamba-bdee9458f66210a06eb29836a66e14d5d8a7fd33.tar.gz
samba-bdee9458f66210a06eb29836a66e14d5d8a7fd33.tar.bz2
samba-bdee9458f66210a06eb29836a66e14d5d8a7fd33.zip
s3:sessionid: use dbwrap_travers_read() in sessionid_travers_read()
This also changes the return code of sessionid_traverse_read() to NTSTATUS. It also uses traverse_read instead of traverse.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 628e5db3ca..6672b64516 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -263,14 +263,14 @@ static int gather_sessioninfo(const char *key, struct sessionid *session,
int list_sessions(TALLOC_CTX *mem_ctx, struct sessionid **session_list)
{
struct session_list sesslist;
- int ret;
+ NTSTATUS status;
sesslist.mem_ctx = mem_ctx;
sesslist.count = 0;
sesslist.sessions = NULL;
- ret = sessionid_traverse_read(gather_sessioninfo, (void *) &sesslist);
- if (ret < 0) {
+ status = sessionid_traverse_read(gather_sessioninfo, (void *) &sesslist);
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(3, ("Session traverse failed\n"));
SAFE_FREE(sesslist.sessions);
*session_list = NULL;