Update of /cvsroot/leaf/src/bering-uclibc/apps/linux/patches
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22657

Added Files:
        sock_sendpage.patch 
Log Message:
fix for CVE-2009-2692


--- NEW FILE: sock_sendpage.patch ---
diff -urN linux-2.4.34.6.orig/net/socket.c linux-2.4.34.6/net/socket.c
--- linux-2.4.34.6.orig/net/socket.c    2009-01-28 15:24:51.000000000 +0100
+++ linux-2.4.34.6/net/socket.c 2009-08-19 21:25:19.000000000 +0200
@@ -621,6 +621,9 @@
        flags = !(file->f_flags & O_NONBLOCK) ? 0 : MSG_DONTWAIT;
        if (more)
                flags |= MSG_MORE;
+       if (!sock->ops->sendpage)
+               return sock_no_sendpage(sock, page, offset, size, flags);
+
 
        return sock->ops->sendpage(sock, page, offset, size, flags);
 }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to