If krb5_init_creds_step is called on an already complete context,
authorGreg Hudson <ghudson@mit.edu>
Fri, 27 Nov 2009 19:30:29 +0000 (19:30 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 27 Nov 2009 19:30:29 +0000 (19:30 +0000)
return 0 rather than uninitialized stack garbage.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23368 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/get_in_tkt.c

index 6ab8afad0726a8a2e0a053da68df11d106652662..472801588eaa00aeede021f6d8979130b6515af5 100644 (file)
@@ -1882,7 +1882,7 @@ krb5_init_creds_step(krb5_context context,
                      krb5_data *realm,
                      unsigned int *flags)
 {
-    krb5_error_code code, code2;
+    krb5_error_code code = 0, code2;
 
     *flags = 0;