git: libfetch: Fix PROXY_HOST bug, socket leak, cache-crash

John Marino marino at crater.dragonflybsd.org
Thu Nov 1 14:56:59 PDT 2012


commit ba1d801e083c520ff4cb89128deda9b887d6fd0b
Author: John Marino <draco at marino.st>
Date:   Thu Nov 1 20:02:52 2012 +0100

    libfetch: Fix PROXY_HOST bug, socket leak, cache-crash
    
    As described in FreeBSD PR kern/139751, NO_PROXY=localhost doesn't work
    due to bad for loop count.
    
    As described in FreeBSD PR kern/153748, an ftp-cached connection will
    close the connection too early when trying to send a request.
    
    There is a socket leak in ftp_request that occurs after a connection is
    established.  Make sure socket is disconnected before exiting.
    
    Taken-From: FreeBSD SVN 198339 (21 OCT 2009)
    Taken-From: FreeBSD SVN 199801 (25 NOV 2009)
    Taken-From: FreeBSD SVN 217505 (17 JAN 2011)

Summary of changes:
 lib/libfetch/common.c |    3 +--
 lib/libfetch/ftp.c    |   12 +++++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ba1d801e083c520ff4cb89128deda9b887d6fd0b


-- 
DragonFly BSD source repository



More information about the Commits mailing list