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

index 77c5d2f52a316cdd7e02a08ccd766eba028565f2..5fb1f9e0ee56b732c5418b83c84314ad0ff1dae8 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);