The dispatch() in kadmind's schpw.c could return a failure code with
an allocated response container. net-server.c does not expect this
and leaks the container in the UDP case. Free the container in
dispatch() if we are returning an error.
ticket: 6903
target_version: 1.9.1
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24886
dc483132-0cff-0310-8789-
dd5450dbe970
remote_faddr,
request,
*response);
+ if (ret) {
+ krb5_free_data(server_handle->context, *response);
+ *response = NULL;
+ }
cleanup:
if (local_kaddrs != NULL)