From: Volker Lendecke Date: Tue, 24 Apr 2012 10:25:59 +0000 (+0200) Subject: s3: Fix Coverity ID 2751: REVERSE_INULL X-Git-Tag: samba-4.0.0alpha20~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374ca0bd26c0a5f1ab77497eafc1e98a420c86a5;p=thirdparty%2Fsamba.git s3: Fix Coverity ID 2751: REVERSE_INULL --- diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index 0c133715319..59288057f0a 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -400,7 +400,7 @@ NTSTATUS dbwrap_record_watch_recv(struct tevent_req *req, return status; } rec = dbwrap_fetch_locked(state->db, mem_ctx, state->key); - if (req == NULL) { + if (rec == NULL) { return NT_STATUS_INTERNAL_DB_ERROR; } *prec = rec;