$NetBSD: patch-bm,v 1.1 2008/12/11 09:42:25 wiz Exp $

--- lib/krb5/os/dnsglue.c.orig	2005-01-15 00:10:53.000000000 +0000
+++ lib/krb5/os/dnsglue.c
@@ -87,6 +87,7 @@ krb5int_dns_init(struct krb5int_dns_stat
 #endif
 
 #if HAVE_RES_NSEARCH
+    bzero(&statbuf,(sizeof(struct __res_state)));
     ret = res_ninit(&statbuf);
     if (ret < 0)
 	return -1;
