sysctl_handle_string: Put logical or in parentheses.

Reported by:	rdivacky
Approved by:	kib (mentor)
Pointy-hat to:	kaktus
This commit is contained in:
Pawel Biernacki 2020-04-15 16:55:38 +00:00
parent 1627b1fd9d
commit f65eac0fc0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359976

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;