forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd8f6ab5
committed
Close socket in case of errors in setting non-blocking
If configuring the newly created socket non-blocking fails weerror out and return INVALID_SOCKET, but the socket that hadbeen created wasn't closed. Fix by issuing closesocket in theerrorpath.Backpatch to all supported branches.Author: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.comBackpatch-through: v121 parent7a7c8c9 commitd8f6ab5
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
298 | 298 |
| |
299 | 299 |
| |
300 | 300 |
| |
| 301 | + | |
301 | 302 |
| |
302 | 303 |
| |
303 | 304 |
| |
|
0 commit comments
Comments
(0)