Apply patch to
authorSam Hartman <hartmans@mit.edu>
Fri, 9 Aug 2002 22:06:51 +0000 (22:06 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 9 Aug 2002 22:06:51 +0000 (22:06 +0000)
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
src/lib/kdb/kdb_xdr.c

index 913057fd13f6e55fa29537e60d834f620b94a9de..24f7e51de275f5af5e95dbf25edae29b42159dbe 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-09  Sam Hartman  <hartmans@mit.edu>
+
+       * kdb_xdr.c (krb5_dbe_search_enctype): Initialize ret to 0; thanks
+       to  Lubos Kejzlar <kejzlar@civ.zcu.cz> 
+
 2002-03-06  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in (LIBMINOR): Bump due to some behavior changes
index 0dcf1badf6851ad944d2120f121f074694ccf076..6068444c35ffcb4a0ab11303de9a28d08f5552fb 100644 (file)
@@ -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;