summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorGerhard Roth <gerhard@cvs.openbsd.org>2020-05-04 14:41:04 +0000
committerGerhard Roth <gerhard@cvs.openbsd.org>2020-05-04 14:41:04 +0000
commit8b9a2922edfbfb6547a2027ccd00998852fe0408 (patch)
treed202dd27a8649a63ba03ddbf1e46624f2c87c989 /sys/dev/usb
parent7826e588b7c7a62d7c0579d9714efcabbc95f844 (diff)
Check v6 availablilty mask instead of v4.
go for it deraadt@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_umb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_umb.c b/sys/dev/usb/if_umb.c
index 0d6a46dbb20..09d4f37cb4e 100644
--- a/sys/dev/usb/if_umb.c
+++ b/sys/dev/usb/if_umb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_umb.c,v 1.33 2020/04/27 11:16:51 gerhard Exp $ */
+/* $OpenBSD: if_umb.c,v 1.34 2020/05/04 14:41:03 gerhard Exp $ */
/*
* Copyright (c) 2016 genua mbH
@@ -1945,7 +1945,7 @@ tryv6:;
goto done;
}
- if ((avail_v4 & (MBIM_IPCONF_HAS_ADDRINFO | MBIM_IPCONF_HAS_GWINFO)) ==
+ if ((avail_v6 & (MBIM_IPCONF_HAS_ADDRINFO | MBIM_IPCONF_HAS_GWINFO)) ==
(MBIM_IPCONF_HAS_ADDRINFO | MBIM_IPCONF_HAS_GWINFO)) {
n = letoh32(ic->ipv6_naddr);
off = letoh32(ic->ipv6_addroffs);