summaryrefslogtreecommitdiff
path: root/source3/lib/eventlog/eventlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/eventlog/eventlog.c')
-rw-r--r--source3/lib/eventlog/eventlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c
index c29c6f0ed4..67583b8666 100644
--- a/source3/lib/eventlog/eventlog.c
+++ b/source3/lib/eventlog/eventlog.c
@@ -781,7 +781,7 @@ NTSTATUS evlog_push_record_tdb(TALLOC_CTX *mem_ctx,
/* lock */
ret = tdb_lock_bystring_with_timeout(tdb, EVT_NEXT_RECORD, 1);
- if (ret == -1) {
+ if (ret != 0) {
return NT_STATUS_LOCK_NOT_GRANTED;
}