mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-02 13:05:42 +08:00
* net.cc (dup_ent): Restore check for NULL input.
This commit is contained in:
parent
bf6269abd3
commit
da43df2df0
@ -1,3 +1,7 @@
|
|||||||
|
2003-09-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* net.cc (dup_ent): Restore check for NULL input.
|
||||||
|
|
||||||
2003-08-31 Christopher Faylor <cgf@redhat.com>
|
2003-08-31 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* include/sys/cygwin.h: Don't define cygwin-specific things if
|
* include/sys/cygwin.h: Don't define cygwin-specific things if
|
||||||
|
@ -449,6 +449,9 @@ dup_ent (void *old, void *src0, struct_type type)
|
|||||||
free (old);
|
free (old);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!src0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
unionent *src = (unionent *) src0;
|
unionent *src = (unionent *) src0;
|
||||||
debug_printf ("duping %sent \"%s\", %p", entnames[type],
|
debug_printf ("duping %sent \"%s\", %p", entnames[type],
|
||||||
src ? src->name : "<null!>", src);
|
src ? src->name : "<null!>", src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user