summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2017-08-10 15:25:57 +0000
committermikeb <mikeb@openbsd.org>2017-08-10 15:25:57 +0000
commit81280da7434d54e2fe960619ae23800bd343753c (patch)
tree5cef9a3033d2dc0963282973fbdd6b19595c1f90
parentPower off all codecs on shutdown to eliminate static noise in speakers (diff)
downloadwireguard-openbsd-81280da7434d54e2fe960619ae23800bd343753c.tar.xz
wireguard-openbsd-81280da7434d54e2fe960619ae23800bd343753c.zip
Fail if unknown type of an address family was specified
Coverity CID 1452981; Severity: unlikely, not user-visible.
-rw-r--r--sys/dev/pv/hypervic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pv/hypervic.c b/sys/dev/pv/hypervic.c
index 1ed7c3d07a2..7a601caa59f 100644
--- a/sys/dev/pv/hypervic.c
+++ b/sys/dev/pv/hypervic.c
@@ -860,6 +860,8 @@ kvp_get_ip_info(struct hv_kvp *kvp, const uint8_t *mac, uint8_t *family,
case ADDR_FAMILY_IPV6:
af = AF_INET6;
break;
+ default:
+ return (-1);
}
KERNEL_LOCK();