From: Stephan Bosch Date: Tue, 14 Oct 2025 21:05:53 +0000 (+0200) Subject: lib-sasl: test-sasl-authentication - Create an ioloop X-Git-Tag: 2.4.2~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdd34aa0f5d476d5c29167bba5067f7a45a0a122;p=thirdparty%2Fdovecot%2Fcore.git lib-sasl: test-sasl-authentication - Create an ioloop Winbind needs this to initiate some async stuff that is not part of this test, so the ioloop is never actually run. However, in its absence a segfault crash occurs. --- diff --git a/src/lib-sasl/test-sasl-authentication.c b/src/lib-sasl/test-sasl-authentication.c index 4af3e44132..4a9451435c 100644 --- a/src/lib-sasl/test-sasl-authentication.c +++ b/src/lib-sasl/test-sasl-authentication.c @@ -5,6 +5,7 @@ #include "str.h" #include "base64.h" #include "randgen.h" +#include "ioloop.h" #include "test-common.h" #include "password-scheme.h" #include "gssapi-dummy.h" @@ -1584,6 +1585,7 @@ int main(int argc, char *argv[]) test_sasl_bad_credentials, NULL }; + struct ioloop *ioloop; bool debug = FALSE; int ret, c; @@ -1609,7 +1611,9 @@ int main(int argc, char *argv[]) dsasl_clients_init_gssapi(); #endif + ioloop = io_loop_create(); ret = test_run(test_functions); + io_loop_destroy(&ioloop); dsasl_clients_deinit(); password_schemes_deinit();