diff options
author | 2014-06-04 08:01:25 +0000 | |
---|---|---|
committer | 2014-06-04 08:01:25 +0000 | |
commit | 68ee0d907efd2398c14fb9d830fee893a0219cc8 (patch) | |
tree | 263f8eb1d20f157068e6d22626e7f4c42dea0c99 | |
parent | While it may be smart to use the radix tree for exports it is not OK to (diff) | |
download | wireguard-openbsd-68ee0d907efd2398c14fb9d830fee893a0219cc8.tar.xz wireguard-openbsd-68ee0d907efd2398c14fb9d830fee893a0219cc8.zip |
Properly compare endpoint addresses: ignore the direction bit which
is not part of the address. From Remco <remco at d-compu.dyndns.org>,
thanks!
ok mpi@
-rw-r--r-- | sys/dev/usb/uaudio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c index 35050769cc4..cc2a43e9aa5 100644 --- a/sys/dev/usb/uaudio.c +++ b/sys/dev/usb/uaudio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uaudio.c,v 1.102 2014/05/17 12:43:18 ratchov Exp $ */ +/* $OpenBSD: uaudio.c,v 1.103 2014/06/04 08:01:25 ratchov Exp $ */ /* $NetBSD: uaudio.c,v 1.90 2004/10/29 17:12:53 kent Exp $ */ /* @@ -1765,7 +1765,8 @@ uaudio_process_as(struct uaudio_softc *sc, const char *buf, int *offsp, return (USBD_NORMAL_COMPLETION); } if (sync_addr && - UE_GET_ADDR(sync_ed->bEndpointAddress) != sync_addr) { + UE_GET_ADDR(sync_ed->bEndpointAddress) != + UE_GET_ADDR(sync_addr)) { printf("%s: sync ep address mismatch\n", sc->sc_dev.dv_xname); return (USBD_NORMAL_COMPLETION); |