MarcoFalke
1f50f0bb38
Merge #21631 : i2p: always check the return value of Sock::Wait()
...
1c1467f51b6dda92dec974eb59026c2c5ba79ed6 i2p: cancel the Accept() method if waiting on the socket errors (Vasil Dimov)
Pull request description:
If `Sock::Wait()` fails, then cancel the `Accept()` method.
Not checking the return value may cause an uninitialized read a few lines below when we read the `occurred` variable.
[Spotted](https://github.com/bitcoin/bitcoin/pull/21630#issuecomment-814765659 ) by MarcoFalke, thanks!
ACKs for top commit:
laanwj:
Code review ACK 1c1467f51b6dda92dec974eb59026c2c5ba79ed6
practicalswift:
cr ACK 1c1467f51b6dda92dec974eb59026c2c5ba79ed6: patch looks correct and agree with laanwj that `[[nodiscard]]` can be taken in a follow-up PR :)
Tree-SHA512: 57fa8a03a4e055999e23121cd9ed1566a585ece0cf68b74223d8c902804cb6890218c9356d60e0560ccacc6c8542a526356c226ebd48e7b299b4572be312d49b
2021-04-13 06:16:12 +02:00
..
2021-04-13 10:24:31 +08:00
2021-03-10 14:31:10 +08:00
2020-12-31 09:45:41 +01:00
2020-12-08 19:26:30 +01:00
2021-01-24 16:28:27 +01:00
2021-04-05 08:42:15 +02:00
2021-03-17 14:56:20 +08:00
2021-04-07 04:53:26 -04:00
2021-04-06 14:50:17 +08:00
2020-12-31 09:45:41 +01:00
2021-04-06 08:45:08 +02:00
2021-04-11 13:36:29 +02:00
2021-04-13 10:24:31 +08:00
2020-10-27 23:08:48 -07:00
2021-02-01 15:17:28 +01:00
2021-04-13 10:24:31 +08:00
2020-11-19 15:48:24 +01:00
2021-04-06 14:50:17 +08:00
2021-04-07 10:53:26 +02:00
2021-03-11 13:45:14 +08:00
2021-02-18 10:07:37 +00:00
2021-02-18 15:08:35 +01:00
2020-12-31 09:45:41 +01:00
2021-01-29 15:39:44 +08:00
2021-01-29 12:39:55 +00:00
2020-12-31 09:45:41 +01:00
2021-02-18 15:08:35 +01:00
2020-07-03 20:43:55 -07:00
2021-01-31 17:35:16 +01:00
2020-12-31 09:45:41 +01:00
2021-03-17 17:59:22 -07:00
2021-03-17 17:59:22 -07:00
2020-11-18 12:00:57 -05:00
2021-03-19 20:52:16 +01:00
2020-11-18 12:00:57 -05:00
2021-03-23 10:51:43 -04:00
2021-01-12 18:34:25 +10:00
2021-01-18 18:33:24 +01:00
2020-11-18 12:00:57 -05:00
2021-01-21 19:31:28 +01:00
2020-11-18 12:00:57 -05:00
2021-04-07 04:53:26 -04:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-02-12 07:53:29 -06:00
2021-04-08 08:58:44 +02:00
2021-04-06 10:47:51 +02:00
2021-03-11 13:45:14 +08:00
2020-12-31 09:45:41 +01:00
2021-04-05 14:00:48 +02:00
2020-09-24 06:55:34 +03:00
2020-12-31 09:45:41 +01:00
2021-02-01 22:30:05 +02:00
2021-02-12 07:53:29 -06:00
2021-03-23 11:11:02 +01:00
2021-03-01 17:36:16 +01:00
2021-03-23 10:51:43 -04:00
2021-01-04 12:31:31 +08:00
2021-03-23 10:51:43 -04:00
2021-01-04 12:23:16 +08:00
2021-02-01 15:17:28 +01:00
2021-02-23 14:34:30 +01:00
2021-02-10 20:46:25 +00:00
2021-01-15 22:48:15 +01:00
2021-01-15 22:48:15 +01:00
2021-01-04 12:23:16 +08:00
2020-12-31 09:45:41 +01:00
2021-04-07 04:53:26 -04:00
2021-03-29 23:29:42 +02:00
2021-03-19 20:52:16 +01:00
2021-04-08 16:31:55 +02:00
2021-03-16 13:59:18 +01:00
2021-04-07 04:53:26 -04:00
2021-04-07 04:53:26 -04:00
2021-03-16 10:48:36 -07:00
2021-01-24 02:44:53 +01:00
2021-01-04 12:23:16 +08:00
2021-03-01 18:19:37 +01:00
2021-03-01 18:19:37 +01:00
2021-04-05 19:13:54 -04:00
2021-01-07 18:07:09 +02:00
2020-12-08 19:26:30 +01:00
2020-10-27 19:40:44 +01:00
2021-03-21 22:33:27 +01:00
2021-03-29 11:12:26 +08:00
2021-03-04 12:34:46 +08:00
2021-03-30 10:42:45 +02:00
2021-03-31 20:17:39 +02:00
2021-01-07 18:07:09 +02:00
2021-01-07 18:07:09 +02:00
2021-01-04 12:31:31 +08:00
2020-12-31 09:45:41 +01:00
2021-03-24 15:40:56 -04:00
2021-03-24 15:40:56 -04:00
2020-12-31 09:45:41 +01:00
2020-10-12 12:14:53 -07:00
2021-04-06 14:50:17 +08:00
2021-03-20 10:24:40 +00:00
2021-04-06 10:47:51 +02:00
2021-04-01 11:35:27 +01:00
2021-03-01 18:19:46 +01:00
2021-03-01 13:22:11 +01:00
2021-03-30 17:41:13 +02:00
2021-04-06 14:50:17 +08:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-03 18:37:59 +01:00
2021-01-03 18:37:59 +01:00
2021-01-31 17:35:01 +01:00
2020-12-31 09:45:41 +01:00
2021-02-01 15:17:28 +01:00
2021-03-17 14:56:20 +08:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-01-31 17:35:16 +01:00
2021-03-29 11:08:29 +08:00
2021-04-07 04:53:26 -04:00
2021-01-13 02:05:00 +01:00
2021-01-29 15:39:44 +08:00
2020-10-09 10:32:19 +02:00
2021-03-04 18:24:00 +01:00
2020-12-31 09:45:41 +01:00
2021-04-13 10:24:31 +08:00
2021-03-15 10:41:30 +08:00
2020-11-25 15:18:33 +01:00
2021-02-01 15:17:28 +01:00
2021-01-26 15:57:28 +08:00
2021-04-05 08:42:15 +02:00
2020-12-31 09:45:41 +01:00
2020-10-12 19:50:16 -07:00
2020-12-01 18:36:39 +01:00
2021-03-02 12:21:32 +00:00
2021-03-02 12:21:32 +00:00
2021-03-11 13:45:14 +08:00
2020-07-01 14:44:24 -04:00
2021-03-22 11:22:06 +08:00
2021-03-18 18:43:52 +01:00
2021-02-27 01:08:09 +10:00
2021-04-07 19:26:25 +01:00
2021-04-07 19:26:25 +01:00
2020-10-12 12:14:53 -07:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-04-04 07:38:02 +02:00
2021-04-06 14:50:17 +08:00
2020-09-22 11:34:30 -04:00
2020-09-22 11:34:30 -04:00
2020-12-31 09:45:41 +01:00
2021-03-01 17:56:07 -05:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00