Skip to content

Commit

Permalink
Unbreak --disable-tls yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Dec 19, 2024
1 parent c1b4d80 commit c7db41e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mod/server.mod/sasl.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,13 @@ int sasl_authenticate_initial(const struct cap_values *cap_value_list)
{
char error_msg[128];
putlog(LOG_DEBUG, "*", "SASL: Starting authentication process");
#ifdef TLS
int servidx = findanyidx(serv);
if ((sasl_mechanism == SASL_MECHANISM_EXTERNAL) && !dcc[servidx].ssl) {
sasl_error("authentication mechanism EXTERNAL not possible via non-ssl connection");
return 1;
}
#endif
if (!is_cap_value(cap_value_list, SASL_MECHANISMS[sasl_mechanism])) {
snprintf(error_msg, sizeof error_msg,
"authentication mechanism %s not supported by server",
Expand Down

0 comments on commit c7db41e

Please sign in to comment.