m_strcpy(s, sizeof(s), server);
url_parse_ciss(&url, s);
- if (url.scheme != U_NNTP || url.scheme != U_NNTPS)
+ if (url.scheme != U_NNTP && url.scheme != U_NNTPS)
return -1;
act->has_ssl = (url.scheme == U_NNTPS);
if (!act->port) {
- act->port = act->has_ssl ? NNTP_PORT : NNTP_SSL_PORT;
+ act->port = act->has_ssl ? NNTP_SSL_PORT : NNTP_PORT;
}
m_strcpy(group, group_len, url.path);
{
CONNECTION *conn = serv->conn;
char buf[STRING];
- unsigned char flags = conn->account.flags;
+ int flags = conn->account.flags;
if (mutt_account_getuser(&conn->account) || !conn->account.user[0] ||
mutt_account_getpass(&conn->account) || !conn->account.pass[0]) {