Skip to content

Commit

Permalink
Handle missing NSS modules and those without callbacks.
Browse files Browse the repository at this point in the history
getaddrinfo didn't update the status variable in that round of the
loop if no callback was used.
  • Loading branch information
Ulrich Drepper committed Jul 25, 2009
1 parent 29e92fa commit 6573175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2009-07-25 Ulrich Drepper <drepper@redhat.com>

[BZ #10448]
* sysdeps/posix/getaddrinfo.c (gaih_inet): If NSS module contains no
callback we must touch the status to avoid using stale value.

* sysdeps/x86_64/multiarch/strcmp.S: Exclude unused code from being
compiled in.

Expand Down
2 changes: 2 additions & 0 deletions sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ gaih_inet (const char *name, const struct gaih_service *service,
&& inet6_status != NSS_STATUS_UNAVAIL)
status = inet6_status;
}
else
status = NSS_STATUS_UNAVAIL;
}

if (nss_next_action (nip, status) == NSS_ACTION_RETURN)
Expand Down

0 comments on commit 6573175

Please sign in to comment.