mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
[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 <dcb314@hotmail.com> MFC after: 1 week
This commit is contained in:
parent
232028b34e
commit
e4376aaa32
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue