Fix a potential uninitialized free in prepare_error_as()
authorGreg Hudson <ghudson@mit.edu>
Fri, 1 Apr 2011 18:38:10 +0000 (18:38 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 1 Apr 2011 18:38:10 +0000 (18:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24779 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/do_as_req.c

index 6c0921cadda6baad3cea4f1a1644d441d3c5fecf..da0167630213b716ae28248c631934ecc5134062 100644 (file)
@@ -742,7 +742,7 @@ prepare_error_as (struct kdc_request_state *rstate, krb5_kdc_req *request,
 {
     krb5_error errpkt;
     krb5_error_code retval;
-    krb5_data *scratch, *fast_edata = NULL;
+    krb5_data *scratch = NULL, *fast_edata = NULL;
     krb5_pa_data **pa = NULL;
 
     errpkt.ctime = request->nonce;