From: Antony Dovgal Date: Mon, 4 May 2009 14:44:46 +0000 (+0000) Subject: MFH: use correct function X-Git-Tag: php-5.3.0RC2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79d1691d11cd925523ed292bd0244bac5451229c;p=php MFH: use correct function --- diff --git a/main/network.c b/main/network.c index 77c5d2f52a..5fb1f9e0ee 100644 --- a/main/network.c +++ b/main/network.c @@ -792,7 +792,7 @@ php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short switch (sa->sa_family) { #if HAVE_GETADDRINFO && HAVE_IPV6 case AF_INET6: - if (bindto && strstr(bindto, ':')) { + if (bindto && strchr(bindto, ':')) { ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family; ((struct sockaddr_in6 *)sa)->sin6_port = htons(port); socklen = sizeof(struct sockaddr_in6);