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

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

Bump

  • Property mode set to 100644
  • oftpd-0.3.7/src/ftp_listener.c

     
    159159        switch (family) { 
    160160#ifdef INET6 
    161161        case AF_INET6: 
    162                 ((struct sockaddr_in6*)&sock_addr)->sin6_port = port; 
     162                ((struct sockaddr_in6*)&sock_addr)->sin6_port = htons(port); 
    163163                break; 
    164164#endif 
    165165        case AF_INET: 
    166                 ((struct sockaddr_in*)&sock_addr)->sin_port = port; 
     166                ((struct sockaddr_in*)&sock_addr)->sin_port = htons(port); 
    167167                break; 
    168168        default: 
    169169                /* handle error */ 
Note: See TracBrowser for help on using the repository browser.