Changelog
+Daniel Stenberg (11 Aug 2009)
+- Benbuck Nason posted the bug report #2835196
+ (http://curl.haxx.se/bug/view.cgi?id=2835196), fixing a few compiler
+ warnings when mixing ints and bools.
+
Daniel Fandrich (10 Aug 2009)
- Fixed a memory leak in the FTP code and an off-by-one heap buffer overflow.
/* But only if a body transfer was requested. */
if(ftp->transfer == FTPTRANSFER_BODY) {
- result = ftp_nb_type(conn, 1, FTP_LIST_TYPE);
+ result = ftp_nb_type(conn, TRUE, FTP_LIST_TYPE);
if(result)
return result;
}
bool *dophase_done)
{
CURLcode result=CURLE_OK;
- bool connected=0;
+ bool connected=FALSE;
struct SessionHandle *data = conn->data;
struct ftp_conn *ftpc = &conn->proto.ftpc;
data->req.size = -1; /* make sure this is unknown at this point */
if(data->set.use_netrc != CURL_NETRC_REQUIRED) {
/* We could use the one in the URL */
- conn->bits.user_passwd = 1; /* enable user+password */
+ conn->bits.user_passwd = TRUE; /* enable user+password */
if(*userpass != ':') {
/* the name is given, get user+password */
different host or similar. */
conn->bits.netrc = TRUE;
- conn->bits.user_passwd = 1; /* enable user+password */
+ conn->bits.user_passwd = TRUE; /* enable user+password */
}
}
}