cvs updates from Wed Dec 15 17:45:22 EST 2010
[tridge/bind9.git] / bin / check / named-checkzone.c
index 113934eee1d3c97c53a56f22f29feb409e9d0301..4ba952473a9082b87d18e20a7f4c868fe458be9d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2010  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 1999-2003  Internet Software Consortium.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: named-checkzone.c,v 1.59 2009/12/04 22:06:37 tbox Exp $ */
+/* $Id: named-checkzone.c,v 1.61 2010/09/07 23:46:59 tbox Exp $ */
 
 /*! \file */
 
@@ -442,6 +442,10 @@ main(int argc, char **argv) {
        if (isc_commandline_index + 2 != argc)
                usage();
 
+#ifdef _WIN32
+       InitSockets();
+#endif
+
        RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
        if (!quiet)
                RUNTIME_CHECK(setup_logging(mctx, errout, &lctx)
@@ -476,5 +480,8 @@ main(int argc, char **argv) {
        isc_hash_destroy();
        isc_entropy_detach(&ectx);
        isc_mem_destroy(&mctx);
+#ifdef _WIN32
+       DestroySockets();
+#endif
        return ((result == ISC_R_SUCCESS) ? 0 : 1);
 }