krb5_key_data *server_key;
krb5_key_data *client_key;
krb5_keyblock *as_encrypting_key = NULL;
- krb5_data *response;
+ krb5_data *response = NULL;
const char *emsg = 0;
int did_log = 0;
register int i;
state->request = request;
state->e_data = NULL;
state->authtime = 0;
+ state->c_flags = 0;
state->req_pkt = req_pkt;
state->rstate = NULL;
state->sname = 0;
if (code)
com_err(state->prog ? state->prog : NULL, code,
_("while dispatching (udp)"));
- if (code || response == NULL || state == NULL)
+ if (code || response == NULL)
goto out;
cc = send_to_from(state->port_fd, response->data,
}
state = prepare_for_dispatch(ctx, ev);
- if (!state)
+ if (!state) {
+ krb5_free_data(get_context(conn->handle), response);
goto kill_tcp_connection;
+ }
process_tcp_response(state, 0, response);
}
}