diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/connection.c | 2 | ||||
-rw-r--r-- | source3/smbd/session.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index f1ec301ee2..7ed9518756 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -120,7 +120,7 @@ int count_current_connections( const char *sharename, bool clear ) ret = connections_forall(count_fn, &cs); unbecome_root(); - if (ret == -1) { + if (ret < 0) { DEBUG(0,("count_current_connections: traverse of " "connections.tdb failed\n")); return 0; diff --git a/source3/smbd/session.c b/source3/smbd/session.c index 12d4818e90..48afb5389f 100644 --- a/source3/smbd/session.c +++ b/source3/smbd/session.c @@ -264,7 +264,7 @@ int list_sessions(TALLOC_CTX *mem_ctx, struct sessionid **session_list) sesslist.sessions = NULL; ret = sessionid_traverse_read(gather_sessioninfo, (void *) &sesslist); - if (ret == -1) { + if (ret < 0) { DEBUG(3, ("Session traverse failed\n")); SAFE_FREE(sesslist.sessions); *session_list = NULL; |