Fix data initialization in process_as_req function
authorZhanna Tsitkov <tsitkova@mit.edu>
Fri, 5 Dec 2008 20:18:47 +0000 (20:18 +0000)
committerZhanna Tsitkov <tsitkova@mit.edu>
Fri, 5 Dec 2008 20:18:47 +0000 (20:18 +0000)
Ticket: 6282

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

src/kdc/do_as_req.c

index 0da9b4ad9699cca4f2af910524013c96f7798a40..1fbe56fb07179ae461dd36b4c785cec6fcdc64a1 100644 (file)
@@ -2,7 +2,7 @@
  * kdc/do_as_req.c
  *
  * Portions Copyright (C) 2007 Apple Inc.
- * Copyright 1990,1991,2007 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991,2007,2008 by the Massachusetts Institute of Technology.
  * All Rights Reserved.
  *
  * Export of this software from the United States of America may
@@ -98,7 +98,7 @@ process_as_req(krb5_kdc_req *request, krb5_data *req_pkt,
     ticket_reply.enc_part.ciphertext.data = 0;
     e_data.data = 0;
     encrypting_key.contents = 0;
-    reply.padata = 0;
+    memset(&reply, 0, sizeof(reply));
     session_key.contents = 0;
     enc_tkt_reply.authorization_data = NULL;