svn commit: r324459 - head/sys/kern

Sean Bruno sbruno at FreeBSD.org
Tue Oct 10 00:32:22 UTC 2017


Author: sbruno
Date: Tue Oct 10 00:32:21 2017
New Revision: 324459
URL: https://svnweb.freebsd.org/changeset/base/324459

Log:
  Revert r324405 at the request of the submitter pending better solution.
  
  Submitted by:	Jason Eggleston <jason at eggnet.com>
  Sponsored by:	Limelight Networks

Modified:
  head/sys/kern/kern_sendfile.c

Modified: head/sys/kern/kern_sendfile.c
==============================================================================
--- head/sys/kern/kern_sendfile.c	Tue Oct 10 00:26:44 2017	(r324458)
+++ head/sys/kern/kern_sendfile.c	Tue Oct 10 00:32:21 2017	(r324459)
@@ -507,11 +507,6 @@ sendfile_getsock(struct thread *td, int s, struct file
 	*so = (*sock_fp)->f_data;
 	if ((*so)->so_type != SOCK_STREAM)
 		return (EINVAL);
-	if ((*so)->so_error) {
-		error = (*so)->so_error;
-		(*so)->so_error = 0;
-		return (error);
-	}
 	if (((*so)->so_state & SS_ISCONNECTED) == 0)
 		return (ENOTCONN);
 	return (0);


More information about the svn-src-all mailing list