]> granicus.if.org Git - php/commitdiff
use correct function
authorAntony Dovgal <tony2001@php.net>
Mon, 4 May 2009 14:44:24 +0000 (14:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 4 May 2009 14:44:24 +0000 (14:44 +0000)
main/network.c

index 476f930db3c8cb2e7b2fb6d9d0345d8a6a46c9a2..f4954c3523613a4a1f7f5da2c8d1b1b13223209e 100644 (file)
@@ -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);