Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-01 20:47:03 +0400
committerChristopher Faylor <me@cgf.cx>2003-09-01 20:47:03 +0400
commitda43df2df0bf504dbdbc472878b7128813118413 (patch)
treeecb84b29bc628bc81d7e6baf7c6654e66c6992a2 /winsup/cygwin/net.cc
parentbf6269abd316f250dc96ca241accf37a134dadab (diff)
* net.cc (dup_ent): Restore check for NULL input.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc3
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);