diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-01 16:47:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-01 16:47:03 +0000 |
commit | da43df2df0bf504dbdbc472878b7128813118413 (patch) | |
tree | ecb84b29bc628bc81d7e6baf7c6654e66c6992a2 /winsup/cygwin/net.cc | |
parent | bf6269abd316f250dc96ca241accf37a134dadab (diff) | |
download | cygnal-da43df2df0bf504dbdbc472878b7128813118413.tar.gz cygnal-da43df2df0bf504dbdbc472878b7128813118413.tar.bz2 cygnal-da43df2df0bf504dbdbc472878b7128813118413.zip |
* net.cc (dup_ent): Restore check for NULL input.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 79adfc3f6..b888ab60c 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -449,6 +449,9 @@ dup_ent (void *old, void *src0, struct_type type) free (old); } + if (!src0) + return NULL; + unionent *src = (unionent *) src0; debug_printf ("duping %sent \"%s\", %p", entnames[type], src ? src->name : "<null!>", src); |