RE: [PATCH] Cygwin: resolver: A few fixes for cygwin_query(), part 2

2022-01-19 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin-patches
> Great, thanks! I pushed all your resolver patches. Thank you! I'll be submitting the last tiny little one in a sec :-) Anton Lavrentiev Contractor NIH/NLM/NCBI

Re: [PATCH] Cygwin: resolver: A few fixes for cygwin_query(), part 2

2022-01-18 Thread Corinna Vinschen
On Jan 18 19:07, Anton Lavrentiev via Cygwin-patches wrote: > Make sure Windows ResultSet is free'd when dn_comp failed internally > --- > winsup/cygwin/libc/minires-os-if.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) Great, thanks! I pushed all your resolver patches. Cori

[PATCH] Cygwin: resolver: A few fixes for cygwin_query(), part 2

2022-01-18 Thread Anton Lavrentiev via Cygwin-patches
Make sure Windows ResultSet is free'd when dn_comp failed internally --- winsup/cygwin/libc/minires-os-if.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minires-os-if.c index 5da1c0c55..c6fde776a 100644 --- a/

[PATCH] Cygwin: resolver: A few fixes for cygwin_query()

2022-01-18 Thread Anton Lavrentiev via Cygwin-patches
- Make sure the answer buffer is properly cleared so there is no trailing garbage when the response does not fit entirely in; - Make sure an internal decomp failure gets reported correctly (w/return code -1); - Make sure that the buffer is not overrun when filling out the header. --- winsup/cygwi