Skip to content

Commit

Permalink
2012-03-23 Jeff Law <law@redhat.com>
Browse files Browse the repository at this point in the history
        * nss/getnssent.c (__nss_getent): Fix typo.
  • Loading branch information
Jeff Law committed Mar 23, 2012
1 parent 4c42a0c commit 6a9b9c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2012-03-23 Jeff Law <law@redhat.com>

* nss/getnssent.c (__nss_getent): Fix typo.

2012-03-23 David S. Miller <davem@davemloft.net>

* sysdeps/sparc/fpu/libm-test-ulps: Update.
Expand Down
4 changes: 2 additions & 2 deletions nss/getnssent.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2000, 2004 Free Software Foundation, Inc.
/* Copyright (C) 2000, 2004, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -32,7 +32,7 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer,
*buffer = malloc (*buffer_size);
}

while (buffer != NULL
while (*buffer != NULL
&& func (resbuf, *buffer, *buffer_size, &result, h_errnop) == ERANGE
&& (h_errnop == NULL || *h_errnop == NETDB_INTERNAL))
{
Expand Down

0 comments on commit 6a9b9c0

Please sign in to comment.