Re: [PATCH] ftpfs: fix host lookup error handling

2019-08-28 Thread Krzysztof Piecuch
Hello, thanks for the code review. I'll submit fixes in a while. Kind regards, Krzysztof Piecuch Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Monday, August 26, 2019 7:36 PM, Samuel Thibault wrote: > Hello, > > Krzysztof Piecuch, le lun. 26 août 2019 17:54:55 +,

Re: [PATCH] ftpfs: fix host lookup error handling

2019-08-26 Thread Samuel Thibault
Hello, Krzysztof Piecuch, le lun. 26 août 2019 17:54:55 +, a ecrit: > - if (gethostbyname_r (host, &_he, hostent_data, sizeof hostent_data, > -&he, h_err) == 0) > + do { > +bufsize *= 2; > +hostent_data = realloc(hostent_data, bufsize); > +if (!hostent_data) >

Re: [PATCH] ftpfs: fix host lookup error handling

2019-08-26 Thread Krzysztof Piecuch
n, 26 Aug 2019 13:43:18 -0400 Subject: [PATCH] ftpfs: fix host lookup error handling --- ftpfs/host.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ftpfs/host.c b/ftpfs/host.c index cd6fd4c0..ba1689b1 100644 --- a/ftpfs/host.c +++ b/ftpfs/host.c @@ -101,7

[PATCH] ftpfs: fix host lookup error handling

2019-08-26 Thread Krzysztof Piecuch
19 13:43:18 -0400 Subject: [PATCH] ftpfs: fix host lookup error handling --- ftpfs/host.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ftpfs/host.c b/ftpfs/host.c index cd6fd4c0..dab77046 100644 --- a/ftpfs/host.c +++ b/ftpfs/host.c @@ -101,7 +1