From a29dbfe531737caec8042f17e654f872168b207b Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 9 Aug 2002 22:06:51 +0000 Subject: [PATCH] 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 --- src/lib/kdb/ChangeLog | 5 +++++ src/lib/kdb/kdb_xdr.c | 1 + 2 files changed, 6 insertions(+) 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; -- 2.26.2