]> granicus.if.org Git - php/commitdiff
Fix the return value check too
authorWez Furlong <wez@php.net>
Mon, 11 Oct 2004 01:40:41 +0000 (01:40 +0000)
committerWez Furlong <wez@php.net>
Mon, 11 Oct 2004 01:40:41 +0000 (01:40 +0000)
main/streams/transports.c

index b1de80d4801aef665a2e616b8f8e54e9477a6662..57cc0a6c5a4b73dd3229d13b9a197a10c2e7c381 100644 (file)
@@ -137,7 +137,7 @@ PHPAPI php_stream *_php_stream_xport_create(const char *name, long namelen, int
                        /* client */
 
                        if (flags & STREAM_XPORT_CONNECT) {
-                               if (0 != php_stream_xport_connect(stream, name, namelen,
+                               if (-1 == php_stream_xport_connect(stream, name, namelen,
                                                        flags & STREAM_XPORT_CONNECT_ASYNC ? 1 : 0,
                                                        timeout, &error_text, error_code TSRMLS_CC)) {