]> git.ipfire.org Git - thirdparty/curl.git/commit
socketpair: fix potential hangs
authorPaul Groke <paul.groke@dynatrace.com>
Fri, 28 May 2021 11:42:56 +0000 (13:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Jun 2021 08:03:31 +0000 (10:03 +0200)
commitc769d1eab4de8b9f1bd84d992c63692fdc43c5be
treee80a49eda6609205953fe8a0a764ca31b6b67dbc
parent3c0f4622cdfd6952d6b88c6457624757a25b52fe
socketpair: fix potential hangs

Fixes potential hang in accept by using select + non-blocking accept.

Fixes potential hang in peer check by replacing the send/recv check with
a getsockname/getpeername check.

Adds length check for returned sockaddr data.

Closes #7144
lib/socketpair.c