]> granicus.if.org Git - php/commitdiff
- fix the fix for bug #52323
authorPierre Joye <pajoye@php.net>
Wed, 8 Sep 2010 11:51:11 +0000 (11:51 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 8 Sep 2010 11:51:11 +0000 (11:51 +0000)
main/network.c

index 589d5a1cd3955838818d54b970517ad2569c8ab0..02d323fce2fac24ccad276eaee327ca09a73817d 100644 (file)
@@ -376,7 +376,7 @@ ok:
                *error_code = error;
        }
 
-       if (error && error_string) {
+       if (error) {
                ret = -1;
                if (error_string) {
                        *error_string = php_socket_strerror(error, NULL, 0);