mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue