Ole André Vadla Ravnås 9ac3a27f03 gsocket: Fix credentials error-handling on Apple OSes
- When querying a TCP socket, getsockopt() may succeed but the resulting
  `optlen` will be zero. This means we'd previously be reading
  uninitialized stack memory in such cases.
- After a file-descriptor has gone through FD-passing, getsockopt() may
  fail with EINVAL. At least this is the case with TCP sockets.
- While at it also use SOL_LOCAL instead of hard-coding its value.
2021-01-04 12:29:47 +00:00
..
2019-01-15 15:11:43 +00:00
2019-12-18 16:51:11 +00:00
2013-07-11 13:49:20 -04:00
2014-09-09 14:11:38 -04:00
2014-01-01 22:01:15 -05:00
2020-11-17 15:50:07 +00:00
2016-04-26 15:20:16 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2020-11-17 15:50:07 +00:00
2020-09-30 19:39:30 +01:00
2018-09-12 15:42:11 +00:00
2020-11-17 15:50:07 +00:00
2020-11-17 15:50:07 +00:00
2019-01-10 13:50:26 -05:00