diff options
author | 2015-06-21 03:20:56 +0000 | |
---|---|---|
committer | 2015-06-21 03:20:56 +0000 | |
commit | ada4c6055c06dd6d2032a67e98d64255b3cf6c6f (patch) | |
tree | ef161655ebb201990a0c338d1a642c13d7aff578 /sys/dev/usb/uhub.c | |
parent | memory leak on failure; from Maxime Villard (diff) | |
download | wireguard-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