check_smtp: set success value for auth check

This commit is contained in:
Lorenz Kästle 2026-06-19 11:26:50 +02:00
parent 167be08c4b
commit c032c3ecbd

View file

@ -481,6 +481,10 @@ int main(int argc, char **argv) {
if (config.authtype != NULL) {
mp_subcheck sc_auth = mp_subcheck_init();
// set sucess values here, failure will be set below
sc_auth = mp_set_subcheck_default_state(sc_auth, STATE_OK);
xasprintf(&sc_auth.output, "Login succeded");
if (strcmp(config.authtype, "LOGIN") == 0) {
char *abuf;
int ret;