Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 584360
Collapse All | Expand All

(-)apps/s_socket.c.orig (-1 / +6 lines)
Lines 590-596 Link Here
590
    }
590
    }
591
    *(p++) = '\0';
591
    *(p++) = '\0';
592
592
593
    if ((ip != NULL) && !host_ip(str, ip, AF_INET))
593
    if ((*h == '[') && (*(p-2) == ']')) {
594
        h++;
595
        *(p-2) = '\0';
596
    }
597
598
    if ((ip != NULL) && !host_ip(h, ip, AF_INET))
594
        goto err;
599
        goto err;
595
    if (host_ptr != NULL)
600
    if (host_ptr != NULL)
596
        *host_ptr = h;
601
        *host_ptr = h;

Return to bug 584360