From: cgf Date: Mon, 1 Sep 2003 16:47:03 +0000 (+0000) Subject: * net.cc (dup_ent): Restore check for NULL input. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=86828fd6bf55cbd7fd153b1da836b7635c5786a0;p=pf3gnuchains%2Fpf3gnuchains3x.git * net.cc (dup_ent): Restore check for NULL input. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 847a3c7fef..3d4140afbd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-09-01 Christopher Faylor + + * net.cc (dup_ent): Restore check for NULL input. + 2003-08-31 Christopher Faylor * include/sys/cygwin.h: Don't define cygwin-specific things if diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 79adfc3f66..b888ab60c7 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 : "", src);