Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) Subject: Initialize buffer before calling res_ninit X-RT-Original-Encoding: iso-8859-1 Content-Length: 674 commit gate failed; creating manually From: rra@MIT.EDU Subject: svn rev #18669: trunk/src/lib/krb5/os/ To: cvs-krb5@mit.edu Date: Sat, 7 Oct 2006 23:22:49 -0400 (EDT) Reply-To: krbdev@MIT.EDU Commit By: rra Log Message: Ticket: new Subject: Initialize buffer before calling res_ninit Component: krb5-libs Version_Reported: 1.5.1 Target_Version: 1.5.2 Tags: pullup Per Paul Vixie: It is necessary to zero out the statbuf before calling res_ninit(), or else res_vinit() will call res_nclose() and res_ndestroy() with stack trash as a statbuf, and they will call free() with stack trash, and programs will dump core. Changed Files: U trunk/src/lib/krb5/os/dnsglue.c