summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-06-21 03:20:56 +0000
committermillert <millert@openbsd.org>2015-06-21 03:20:56 +0000
commitada4c6055c06dd6d2032a67e98d64255b3cf6c6f (patch)
treeef161655ebb201990a0c338d1a642c13d7aff578 /sys/dev/usb/uhub.c
parentmemory leak on failure; from Maxime Villard (diff)
downloadwireguard-openbsd-ada4c6055c06dd6d2032a67e98d64255b3cf6c6f.tar.xz
wireguard-openbsd-ada4c6055c06dd6d2032a67e98d64255b3cf6c6f.zip
Just return if nmemb is 0. Avoids a NULL dereference and is
consistent with the behavior of the other libc sort functions. OK deraadt@
Diffstat (limited to 'sys/dev/usb/uhub.c')
0 files changed, 0 insertions, 0 deletions