OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b75e039
)
* net.cc (dup_ent): Restore check for NULL input.
author
cgf
<cgf>
Mon, 1 Sep 2003 16:47:03 +0000
(16:47 +0000)
committer
cgf
<cgf>
Mon, 1 Sep 2003 16:47:03 +0000
(16:47 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/net.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
847a3c7
..
3d4140a
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-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>
* include/sys/cygwin.h: Don't define cygwin-specific things if
diff --git
a/winsup/cygwin/net.cc
b/winsup/cygwin/net.cc
index
79adfc3
..
b888ab6
100644
(file)
--- 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);