Skip to content

Struct-pack stream-related data in ftpbuf #12877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/ftp/ftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ ftp_nb_continue_read(ftpbuf_t *ftp)
{
databuf_t *data = NULL;
char *ptr;
int lastch;
char lastch;
size_t rcvd;
ftptype_t type;

Expand Down
16 changes: 8 additions & 8 deletions ext/ftp/ftp.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ typedef struct ftpbuf
int autoseek; /* User configurable autoseek flag */
int usepasvaddress; /* Use the address returned by the pasv command */

int nb; /* "nonblocking" transfer in progress */
databuf_t *data; /* Data connection for "nonblocking" transfers */
php_stream *stream; /* output stream for "nonblocking" transfers */
int lastch; /* last char of previous call */
int direction; /* recv = 0 / send = 1 */
int closestream;/* close or not close stream */
bool nb; /* "nonblocking" transfer in progress */
char lastch; /* last char of previous call */
bool direction; /* recv = 0 / send = 1 */
bool closestream;/* close or not close stream */
#ifdef HAVE_FTP_SSL
int use_ssl; /* enable(1) or disable(0) ssl */
int use_ssl_for_data; /* en/disable ssl for the dataconnection */
int old_ssl; /* old mode = forced data encryption */
bool use_ssl; /* enable(1) or disable(0) ssl */
bool use_ssl_for_data; /* en/disable ssl for the dataconnection */
bool old_ssl; /* old mode = forced data encryption */
bool ssl_active; /* ssl active on control conn */
SSL *ssl_handle; /* handle for control connection */
int ssl_active; /* ssl active on control conn */
SSL_SESSION *last_ssl_session; /* last negotiated session */
#endif

Expand Down