The TLS code requires threads to work.
if (cs) this->server = mainconfig.name;
}
-#ifdef WITH_TLS
- if (!spawn_flag && this->tls) {
- tls_error:
- cf_log_err(cf_sectiontoitem(cs), "Threading must be enabled for TLS sockets to function properly.");
- listen_free(&this);
- return -1;
- }
-#endif
-
*last = this;
last = &(this->next);
return -1;
}
-#ifdef WITH_TLS
- if (!spawn_flag && this->tls) goto tls_error;
-#endif
-
*last = this;
last = &(this->next);
} /* loop over "listen" directives in server <foo> */
defined_proxy = 1;
}
+#endif
+
+#ifdef WITH_TLS
+ if (!spawn_flag && this->tls) {
+ cf_log_err(cf_sectiontoitem(this->cs), "Threading must be enabled for TLS sockets to function properly.");
+ cf_log_err(cf_sectiontoitem(this->cs), "You probably need to do 'radiusd -fxx -l stdout' for debugging");
+ return -1;
+ }
#endif
event_new_fd(this);
}