From da43df2df0bf504dbdbc472878b7128813118413 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 1 Sep 2003 16:47:03 +0000 Subject: * net.cc (dup_ent): Restore check for NULL input. --- winsup/cygwin/net.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/net.cc') 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 : "", src); -- cgit v1.2.3