mirror of git://sourceware.org/git/glibc.git
* nis/nis_table.c (nis_list): If __follow_path fails in the new
code, make sure the nis_freeresult call doesn't crash and that the result is reported correctly.
This commit is contained in:
parent
6836157252
commit
4df92d57e8
|
|
@ -1,3 +1,9 @@
|
||||||
|
2006-10-06 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nis/nis_table.c (nis_list): If __follow_path fails in the new
|
||||||
|
code, make sure the nis_freeresult call doesn't crash and that the
|
||||||
|
result is reported correctly.
|
||||||
|
|
||||||
2006-09-27 Jakub Jelinek <jakub@redhat.com>
|
2006-09-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
|
* nis/nis_table.c (nis_list): Handle FOLLOW_PATH | ALL_RESULTS
|
||||||
|
|
|
||||||
|
|
@ -438,7 +438,11 @@ nis_list (const_nis_name name, unsigned int flags,
|
||||||
&bptr);
|
&bptr);
|
||||||
if (clnt_status != NIS_SUCCESS)
|
if (clnt_status != NIS_SUCCESS)
|
||||||
{
|
{
|
||||||
NIS_RES_STATUS (res) = clnt_status;
|
/* Prepare for the nis_freeresult call. */
|
||||||
|
memset (res, '\0', sizeof (*res));
|
||||||
|
|
||||||
|
if (clnt_status == NIS_NOMEMORY)
|
||||||
|
NIS_RES_STATUS (allres) = clnt_status;
|
||||||
++done;
|
++done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue