Commit b724ac2
When getaddrinfo returns an error, the output pointer is in an unknown state
Don't call freeaddrinfo on it. See the issue for discussion and details with
links to reasoning. _Most_ libc getaddrinfo implementations never modify the
output pointer unless they are returning success.
Co-authored-by: Sergey G. Brester <[email protected]>
Co-authored-by: Oleg Iarygin <[email protected]>
1 parent bd79039 commit b724ac2
File tree
2 files changed
+7
-0
lines changed- Misc/NEWS.d/next/Library
- Modules
2 files changed
+7
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
| 1088 | + | |
1088 | 1089 | | |
1089 | 1090 | | |
1090 | 1091 | | |
| |||
1195 | 1196 | | |
1196 | 1197 | | |
1197 | 1198 | | |
| 1199 | + | |
1198 | 1200 | | |
1199 | 1201 | | |
1200 | 1202 | | |
| |||
6719 | 6721 | | |
6720 | 6722 | | |
6721 | 6723 | | |
| 6724 | + | |
6722 | 6725 | | |
6723 | 6726 | | |
6724 | 6727 | | |
| |||
6815 | 6818 | | |
6816 | 6819 | | |
6817 | 6820 | | |
| 6821 | + | |
6818 | 6822 | | |
6819 | 6823 | | |
6820 | 6824 | | |
| |||
0 commit comments