OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5052a2d
)
* net.cc (cygwin_getpeername): Defend against NULL pointer dereference.
author
cgf
<cgf>
Tue, 2 Jul 2002 23:57:04 +0000
(23:57 +0000)
committer
cgf
<cgf>
Tue, 2 Jul 2002 23:57:04 +0000
(23:57 +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
b1f6708
..
2783c3f
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,3
+1,7
@@
+2002-07-02 Christopher Faylor <cgf@redhat.com>
+
+ * net.cc (cygwin_getpeername): Defend against NULL pointer dereference.
+
2002-07-02 Egor Duda <deo@logos-m.ru>
* include/cygwin/version.h: Bump API minor version.
diff --git
a/winsup/cygwin/net.cc
b/winsup/cygwin/net.cc
index
c54dc7e
..
870bf78
100644
(file)
--- a/
winsup/cygwin/net.cc
+++ b/
winsup/cygwin/net.cc
@@
-1131,7
+1131,7
@@
cygwin_getpeername (int fd, struct sockaddr *name, int *len)
if (fh)
res = fh->getpeername (name, len);
- syscall_printf ("%d = getpeername %d", res,
fh->get_socket (
));
+ syscall_printf ("%d = getpeername %d", res,
(fh ? fh->get_socket () : -1
));
return res;
}