Code

fix for -H invocation of hostname
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Fri, 7 Mar 2003 06:43:50 +0000 (06:43 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Fri, 7 Mar 2003 06:43:50 +0000 (06:43 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@372 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_udp.c

index 4074d948453f9628e3120337ec19945e3fb39c14..4ae9c1036319f96a732df3e401b6f7a4c16e7104 100644 (file)
@@ -220,9 +220,9 @@ process_arguments (int argc, char **argv)
                        usage ("Invalid host name/address\n");
                server_address = argv[c++];
        }
-       else {
+
+       if (server_address == NULL)
                usage ("Host name was not supplied\n");
-       }
 
        return c;
 }