summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-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) {