fix linter warnings

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2022-03-31 12:44:19 +02:00
parent 7111ee2f85
commit 3600756723
2 changed files with 3 additions and 20 deletions

View File

@@ -1206,9 +1206,9 @@ int xmpp_conn_set_flags(xmpp_conn_t *conn, long flags)
"for disconnected connection");
return XMPP_EINVOP;
}
if (flags & XMPP_CONN_FLAG_DISABLE_TLS &&
flags & (XMPP_CONN_FLAG_MANDATORY_TLS | XMPP_CONN_FLAG_LEGACY_SSL |
XMPP_CONN_FLAG_TRUST_TLS)) {
if ((flags & XMPP_CONN_FLAG_DISABLE_TLS) &&
(flags & (XMPP_CONN_FLAG_MANDATORY_TLS | XMPP_CONN_FLAG_LEGACY_SSL |
XMPP_CONN_FLAG_TRUST_TLS))) {
strophe_error(conn->ctx, "conn", "Flags 0x%04lx conflict", flags);
return XMPP_EINVOP;
}