diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2014-01-27 17:17:33 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-03-02 22:46:30 +0100 |
commit | 2d35feb2f94ec811b883a651ce61b8ee91ec47cf (patch) | |
tree | 68dcd2d3617521c9ab12bc9d7648f38bd65b1ca4 /nss | |
parent | 8532f402ae3316fde351c87d96824b765526a026 (diff) |
Use right h_errnop for retrying with larger buffer
The libc nsswitch code expects h_errno to be set to NETDB_INTERNAL when
it needs to try again with a larger buffer.
Signed-off-by: Lukas Slebodnik <lslebodn@redhat.com>
Diffstat (limited to 'nss')
-rw-r--r-- | nss/hosts.c | 2 | ||||
-rw-r--r-- | nss/networks.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nss/hosts.c b/nss/hosts.c index eda739b..acbdb1e 100644 --- a/nss/hosts.c +++ b/nss/hosts.c @@ -52,7 +52,7 @@ #undef ERROR_OUT_BUFERROR #define ERROR_OUT_BUFERROR(fp) \ *errnop = ERANGE; \ - *h_errnop = TRY_AGAIN; \ + *h_errnop = NETDB_INTERNAL; \ return NSS_STATUS_TRYAGAIN; #undef ERROR_OUT_WRITEERROR diff --git a/nss/networks.c b/nss/networks.c index b18d5ca..3ffea52 100644 --- a/nss/networks.c +++ b/nss/networks.c @@ -52,7 +52,7 @@ #undef ERROR_OUT_BUFERROR #define ERROR_OUT_BUFERROR(fp) \ *errnop = ERANGE; \ - *h_errnop = TRY_AGAIN; \ + *h_errnop = NETDB_INTERNAL; \ return NSS_STATUS_TRYAGAIN; #undef ERROR_OUT_WRITEERROR |