diff options
| author | Wez Furlong <wez@php.net> | 2004-10-11 01:40:41 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2004-10-11 01:40:41 +0000 |
| commit | b7182e85c7fd0da959492fe51dae9895a89a1ca6 (patch) | |
| tree | 74d9f82f4bc5dba138cb2fd6d35c391865b45cd4 | |
| parent | 7cb4e769ff021e8c461b95cb04df4a7cb1dfb699 (diff) | |
| download | php-git-b7182e85c7fd0da959492fe51dae9895a89a1ca6.tar.gz | |
Fix the return value check too
| -rw-r--r-- | main/streams/transports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/transports.c b/main/streams/transports.c index b1de80d480..57cc0a6c5a 100644 --- a/main/streams/transports.c +++ b/main/streams/transports.c @@ -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)) { |
