source: net-ftp/oftpd/files/oftpd-0.3.7-family-1.patch @ f3987e6

Revision f3987e6, 936 bytes checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
  • src/ftp_session.c

    Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
    Date: 2010-01-05
    Initial Package Version: 0.3.7
    Origin: http://gentoo.mirror.solnet.ch/net-ftp/oftpd/files/oftpd-0.3.7-family.patch
    Upstream Status: unkonwn
    Description: dont crash on wrong protocol family
     
    diff -Naur oftpd-0.3.7.orig/src/ftp_session.c oftpd-0.3.7/src/ftp_session.c
    old new  
    708708    if ((((struct sockaddr *)host_port)->sa_family != AF_INET) &&  
    709709        (((struct sockaddr *)host_port)->sa_family != AF_INET6)) { 
    710710        reply(f, 521, "Only IPv4 and IPv6 supported, address families (4,6)"); 
     711        return; 
    711712    } 
    712713#else 
    713714    if (((struct sockaddr *)host_port)->sa_family != AF_INET) { 
    714715        reply(f, 521, "Only IPv4 supported, address family (4)"); 
     716        return; 
    715717    } 
    716718#endif 
    717719 
Note: See TracBrowser for help on using the repository browser.