View | Details | Raw Unified | Return to bug 17318
Collapse All | Expand All

(-)src/modules/internet/Rsock.c (-1 / +1 lines)
Lines 421-427 Link Here
421
    }
421
    }
422
#endif
422
#endif
423
423
424
    if (! (hp = gethostbyname(host))) return -1;
424
    if (! (hp = gethostbyname(host))) { closesocket(s); return -1; }
425
425
426
    memcpy((char *)&server.sin_addr, hp->h_addr_list[0], hp->h_length);
426
    memcpy((char *)&server.sin_addr, hp->h_addr_list[0], hp->h_length);
427
    server.sin_port = htons((short)port);
427
    server.sin_port = htons((short)port);

Return to bug 17318