HomeFreeBSD

bhyve: avoid side effect in assertion

Description

bhyve: avoid side effect in assertion

An assert() was setting the error variable instead of checking it.

Reported by: Coverity Scan
CID: 1521431
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Pull Request: https://github.com/freebsd/freebsd-src/pull/1244

(cherry picked from commit f7d45c5443edc99857fdda19c68301b5ec4a8971)

Details

Provenance
khorben_defora.orgAuthored on May 17 2024, 7:31 AM
zleiCommitted on Mon, Jun 17, 3:58 AM
Parents
rG048ad7a9ef9f: ifconfig: Fix default netmask calculation
Branches
Unknown
Tags
Unknown