diff --git a/lib/url.c b/lib/url.c index 0b1446c17049160d0f77be7b7b8ec81677b45804..c67e8a6a77e461b1de45c3753d641d9adf73ffc3 100644 --- a/lib/url.c +++ b/lib/url.c @@ -4227,7 +4227,7 @@ static CURLcode parse_remote_port(struct SessionHandle *data, /* we need to create new URL with the new port number */ char *url; /* FTPS connections have the FTP bit set too, so they match as well */ - bool isftp = (bool)(conn->protocol & PROT_FTP); + bool isftp = (bool)(0 != (conn->protocol & PROT_FTP)); /* * This synthesized URL isn't always right--suffixes like ;type=A