From e4376aaa328bf2ff03525c91433614de3842a6f1 Mon Sep 17 00:00:00 2001 From: Oleksandr Tymoshenko Date: Fri, 25 Jan 2019 20:14:28 +0000 Subject: [PATCH] [mips] Fix error condition check that always evaluates to false Use proper logical operand when checking the value of srcid PR: 200988 Submitted by: David Binderman MFC after: 1 week --- sys/mips/nlm/cms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/nlm/cms.c b/sys/mips/nlm/cms.c index 197e989f43b..b1105606e8d 100644 --- a/sys/mips/nlm/cms.c +++ b/sys/mips/nlm/cms.c @@ -204,7 +204,7 @@ xlp_handle_msg_vc(u_int vcmask, int max_msgs) nlm_restore_flags(mflags); if (status != 0) /* no msg or error */ continue; - if (srcid < 0 && srcid >= 1024) { + if (srcid < 0 || srcid >= 1024) { printf("[%s]: bad src id %d\n", __func__, srcid); continue;