sysctl_handle_string: Put logical or in parentheses.

Reported by:	rdivacky
Approved by:	kib (mentor)
Pointy-hat to:	kaktus
This commit is contained in:
kaktus 2020-04-15 16:55:38 +00:00
parent aa6f926f8c
commit d91b3a25d2

View File

@ -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;