sysctl_handle_string: Put logical or in parentheses.
Reported by: rdivacky Approved by: kib (mentor) Pointy-hat to: kaktus
This commit is contained in:
parent
aa6f926f8c
commit
d91b3a25d2
@ -1655,7 +1655,7 @@ sysctl_handle_string(SYSCTL_HANDLER_ARGS)
|
||||
* string. In ddb, don't worry about trying to make a malloced
|
||||
* snapshot.
|
||||
*/
|
||||
if ((oidp->oid_kind & CTLFLAG_WR | CTLFLAG_TUN) == 0 || arg2 == 0
|
||||
if ((oidp->oid_kind & (CTLFLAG_WR | CTLFLAG_TUN)) == 0 || arg2 == 0
|
||||
|| kdb_active) {
|
||||
arg2 = strlen((char *)arg1) + 1;
|
||||
ro_string = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user