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
1627b1fd9d
commit
f65eac0fc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359976
@ -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…
Reference in New Issue
Block a user