forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita6463d2
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 parent475b3ea commita6463d2
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
| 293 | + | |
293 | 294 |
| |
294 | 295 |
| |
295 | 296 |
| |
|
0 commit comments
Comments
(0)