Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc



Module Name:    syssrc
Committed By:   darrenr
Date:           Thu Jul  1 05:56:58 UTC 1999

Modified Files:
        syssrc/sys/kern: uipc_syscalls.c
        syssrc/sys/netccitt: ccitt_proto.c
        syssrc/sys/netinet: in_proto.c
        syssrc/sys/netiso: iso_proto.c
        syssrc/sys/netns: ns_proto.c

Log Message:
fix sys_accept() to return EOPNOTSUPP for protocols which don't support
listen/accept (PR_LISTEN flag in protosw) and detect obvious faults in
parameters passed.  It is still possible for the address used for copying
the socket information to become invalid between that check and the copyout
so close the connection's allocated fd if the copyout fails so that we can
return EFAULT without allocating an fd and the application not knowing about
it.  Ideally we'd be able to queue the connection back up so a later accept
could retrieve it but unfortunately that's not possible.


To generate a diff of this commit:
cvs rdiff -r1.43 -r1.44 syssrc/sys/kern/uipc_syscalls.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/netccitt/ccitt_proto.c
cvs rdiff -r1.30 -r1.31 syssrc/sys/netinet/in_proto.c
cvs rdiff -r1.10 -r1.11 syssrc/sys/netiso/iso_proto.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/netns/ns_proto.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index