summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index ec944e4..d038efe 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -522,7 +522,6 @@ int process_arguments(int argc, char **argv){
522 print_revision(progname, NP_VERSION); 522 print_revision(progname, NP_VERSION);
523 exit(STATE_OK); 523 exit(STATE_OK);
524 case 'H': /* hostname */ 524 case 'H': /* hostname */
525 if (server_address) free(server_address);
526 server_address = optarg; 525 server_address = optarg;
527 break; 526 break;
528 case 's': /* password */ 527 case 's': /* password */
@@ -585,6 +584,8 @@ int process_arguments(int argc, char **argv){
585 } 584 }
586 585
587 } 586 }
587 if (server_address == NULL)
588 usage4 (_("You must provide a server address or host name"));
588 589
589 if (vars_to_check==CHECK_NONE) 590 if (vars_to_check==CHECK_NONE)
590 return ERROR; 591 return ERROR;