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

index 4390fa25d8a2fa95d69d820e2c44e1a29494e8d8..a6f2ca6a163224ed25eb497d1567715d2633589e 100644 (file)
@@ -786,7 +786,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);