diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index e1f2842e..70ad41fe 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -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;