mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
factotum: Fix an operator precedence bug in the secstore code
`==` is higher precedence than `&`. Parenthesize. Change-Id: I2c7ee588fea0d8a66e1c8424f26630015388d61a Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2860 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
This commit is contained in:
parent
9e52ea8a29
commit
c976381d67
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ SC_read(SConn *conn, uchar *buf, int n)
|
|||
uchar count[2], digest[SHA1dlen];
|
||||
int len, nr;
|
||||
|
||||
if(read(ss->fd, count, 2) != 2 || count[0]&0x80 == 0){
|
||||
if(read(ss->fd, count, 2) != 2 || (count[0]&0x80) == 0){
|
||||
werrstr("!SC_read invalid count");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue