From: Sam Hartman Date: Fri, 9 Aug 2002 22:06:51 +0000 (+0000) Subject: Apply patch to X-Git-Tag: krb5-1.3-alpha1~529 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a29dbfe531737caec8042f17e654f872168b207b;p=krb5.git Apply patch to initialize return value in kdb5_dbe_search_enctype so etype info works reliably git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14692 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 913057fd1..24f7e51de 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-09 Sam Hartman + + * kdb_xdr.c (krb5_dbe_search_enctype): Initialize ret to 0; thanks + to Lubos Kejzlar + 2002-03-06 Ken Raeburn * Makefile.in (LIBMINOR): Bump due to some behavior changes diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 0dcf1badf..6068444c3 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -728,6 +728,7 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) krb5_key_data *datap; krb5_error_code ret; + ret = 0; if (kvno == -1 && stype == -1 && ktype == -1) kvno = 0;