com php-src: added comment: ext/ftp/ftp.c
| From: | Anatol Belski | Date: | Wed, 11 Mar 2015 20:46:39 +0000 |
| Subject: | com php-src: added comment: ext/ftp/ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85471@lists.php.net to get a copy of this message | ||
Commit: f1a47988b0bd35c44b08c1416b98e283fb3c3e77
Author: Anatol Belski <ab@php.net> Wed, 11 Mar 2015 14:04:45 +0100
Parents: 167979fe76215978efc64fccad454abb22de862a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f1a47988b0bd35c44b08c1416b98e283fb3c3e77
Log:
added comment
Changed paths:
M ext/ftp/ftp.c
Diff:
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index abe8e89..20f8cb9 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -298,6 +298,7 @@ ftp_login(ftpbuf_t *ftp, const char *user, const char *pass)
SSL_set_fd(ftp->ssl_handle, ftp->fd);
+ /* TODO check SSL_get_error() and poll on failure */
if (SSL_connect(ftp->ssl_handle) <= 0) {
php_error_docref(NULL, E_WARNING, "SSL/TLS handshake failed");
SSL_shutdown(ftp->ssl_handle);