diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/session.c | 6 |
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; |