* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr after

free() is called.
This commit is contained in:
Christopher Faylor 2003-08-08 19:28:34 +00:00
parent 61bbf8b2b7
commit b344f1876c
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-08-08 David Rothenberger <daveroth@acm.org>
* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr
after free() is called.
2003-08-05 Christopher Faylor <cgf@redhat.com>
* Makefile.in: Rework to accommodate new speclib arguments.

View File

@ -75,7 +75,10 @@ pwdgrp::read_group ()
{
for (int i = 0; i < gr.curr_lines; i++)
if ((*group_buf)[i].gr_mem != &null_ptr)
free ((*group_buf)[i].gr_mem);
{
free ((*group_buf)[i].gr_mem);
(*group_buf)[i].gr_mem = &null_ptr;
}
load ("/etc/group");