* 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:
Ulrich Drepper 2006-10-06 20:34:24 +00:00
parent 6836157252
commit 4df92d57e8
3 changed files with 4657 additions and 4126 deletions

View File

@ -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

View File

@ -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;
} }
} }

8771
po/pl.po

File diff suppressed because it is too large Load Diff