Fix the sole case in process_chpw_request() where a return could occur
authorTom Yu <tlyu@mit.edu>
Wed, 13 Apr 2011 18:43:37 +0000 (18:43 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 13 Apr 2011 18:43:37 +0000 (18:43 +0000)
commite88f857c3680ea395c0bed6a82862d8ea1177221
tree918988a7e1783781608b9a0a463bb922901024d5
parentb0031448502561da31fb8c2543c8b01d7df9a872
Fix the sole case in process_chpw_request() where a return could occur
without allocating the data pointer in the response.  This prevents a
later free() of an invalid pointer in kill_tcp_or_rpc_connection().

Also initialize rep->data to NULL in process_chpw_request() and clean
up *response in dispatch() as an additional precaution.

ticket: 6899
tags: pullup
target_version: 1.9.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24878 dc483132-0cff-0310-8789-dd5450dbe970
src/kadmin/server/schpw.c