Commit aceac05
deps: patch to fix *.onion MX query on c-ares
c-ares rejects *.onion MX query but forgot to set `*bufp` to NULL. This
will occur SegmentFault when free `*bufp`.
I make this quick fix and then will make a PR for c-ares either.
Backport-PR-URL: #27542
PR-URL: #25840
Fixes: #25839
Refs: https://github.com/c-ares/c-ares/blob/955df98/ares_create_query.c#L97-L103
Refs: https://github.com/c-ares/c-ares/blob/955df98/ares_query.c#L124
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 2a98b9c commit aceac05Copy full SHA for aceac05
2 files changed
+14-4Lines changed: 14 additions & 4 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- deps/cares/src
- test/parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
deps/cares/src/ares_create_query.c
Copy file name to clipboardExpand all lines: deps/cares/src/ares_create_query.c+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | 97 | |
102 | 98 | |
103 | 99 | |
104 | 100 | |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
105 | 105 | |
106 | 106 | |
107 | 107 | |
|
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
314 | 314 | |
315 | 315 | |
316 | 316 | |
| 317 | + |
| 318 | + |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
0 commit comments