[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
dec5165be2
commit
150ad87981
@ -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 New Issue
Block a user