Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
select: avoid a NULL deref in cwfds_add_sock
curl_multi_waitfds(m, NULL, ...); => Curl_waitfds_init(&cwfds, ufds, size); => Curl_waitfds_add_ps(&cwfds); => cwfds_add_sock(cwfds, ...); Would then try to use the ->wfds array while set to NULL previously. This should not happen, which this is now also protected with an assert to trigger debug builds if it happens. Caught by CodeSonar Assisted-by: Jay Satiro Closes curl#15881
- Loading branch information