mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-07-06 23:51:46 -04:00
check_smtp: set success value for auth check
This commit is contained in:
parent
167be08c4b
commit
c032c3ecbd
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue