In krb5_rd_rep_dce, initialize repl to NULL to avoid using its
authorGreg Hudson <ghudson@mit.edu>
Tue, 20 Jan 2009 18:50:51 +0000 (18:50 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 20 Jan 2009 18:50:51 +0000 (18:50 +0000)
initialized value when we take the first goto to clean_scratch.

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

src/lib/krb5/krb/rd_rep.c

index 1e6e0e1e82328bf37b3f877a1045e26a3af43bc1..2d495ae8f4855059bc3c4a7b1a0f29e55cbb27ba 100644 (file)
@@ -151,7 +151,7 @@ krb5_rd_rep_dce(krb5_context context, krb5_auth_context auth_context,
     krb5_error_code      retval;
     krb5_ap_rep        * reply;
     krb5_data            scratch;
-    krb5_ap_rep_enc_part *repl;
+    krb5_ap_rep_enc_part *repl = NULL;
 
     if (!krb5_is_ap_rep(inbuf))
        return KRB5KRB_AP_ERR_MSG_TYPE;