Code

Modified code to call is_addr() rather than is_dotted_quad() with the
authorJeremy T. Bouse <undrgrid@users.sourceforge.net>
Sat, 8 Mar 2003 02:27:57 +0000 (02:27 +0000)
committerJeremy T. Bouse <undrgrid@users.sourceforge.net>
Sat, 8 Mar 2003 02:27:57 +0000 (02:27 +0000)
new AF indepdent function routines

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@385 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_dns.c

index 19649f50045bbfdde8c1a8f27239bc4b2dea11b6..ac62c45775d7ad939e0977185bf1344e6c688244 100644 (file)
@@ -342,7 +342,7 @@ process_arguments (int argc, char **argv)
                        strcpy (ptr_server, optarg);
                        break;
                case 'a': /* expected address */
-                       if (is_dotted_quad (optarg) == FALSE) {
+                       if (is_addr (optarg) == FALSE) {
                                printf ("Invalid expected address\n\n");
                                print_usage ();
                                exit (STATE_UNKNOWN);