IPVS: precedence bug in ip_vs_sync_switch_mode()
authorDan Carpenter <error27@gmail.com>
Mon, 7 Feb 2011 08:38:55 +0000 (11:38 +0300)
committerSimon Horman <horms@verge.net.au>
Mon, 7 Feb 2011 11:40:00 +0000 (20:40 +0900)
commit7c9989a76e62ceca90e5f31f8920fd6b7b8b6525
tree047edb197bba95258e30caec9989d9ea3a11d3eb
parent8525d6f84f576402278a552ed17d2ba3b61f8e3c
IPVS: precedence bug in ip_vs_sync_switch_mode()

'!' has higher precedence than '&'.  IP_VS_STATE_MASTER is 0x1 so
the original code is equivelent to if (!ipvs->sync_state) ...

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_sync.c