summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 21:24:58 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 22:07:24 +0100
commit4f46ad96f2062bc628becf6dcc0780b69a583798 (patch)
tree1d5a93efb61529b88296ecc716213ab8f916df9f
parentc58eb1f8c52107a211a8604d955ed27d169d44f1 (diff)
downloadsamba-4f46ad96f2062bc628becf6dcc0780b69a583798.tar.gz
samba-4f46ad96f2062bc628becf6dcc0780b69a583798.tar.bz2
samba-4f46ad96f2062bc628becf6dcc0780b69a583798.zip
s3: Fix Coverity ID 2147, FORWARD_NULL
How could this ever have worked???
-rw-r--r--source3/libsmb/conncache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/conncache.c b/source3/libsmb/conncache.c
index daac41e15a..66353188d2 100644
--- a/source3/libsmb/conncache.c
+++ b/source3/libsmb/conncache.c
@@ -99,7 +99,7 @@ static NTSTATUS negative_conn_cache_valuedecode(const char *value)
{
unsigned int v = NT_STATUS_V(NT_STATUS_INTERNAL_ERROR);
- if (value != NULL) {
+ if (value == NULL) {
return NT_STATUS_INTERNAL_ERROR;
}
if (sscanf(value, "%x", &v) != 1) {