move where we reset etypelist

This commit is contained in:
Love Hornquist Astrand
2013-07-18 16:36:08 +02:00
parent 581f834b4e
commit 39abb10aa9

View File

@@ -315,6 +315,8 @@ krb5_verify_ap_req2(krb5_context context,
krb5_error_code ret;
EtypeList etypes;
memset(&etypes, 0, sizeof(etypes));
if (ticket)
*ticket = NULL;
@@ -458,8 +460,6 @@ krb5_verify_ap_req2(krb5_context context,
*ap_req_options |= AP_OPTS_MUTUAL_REQUIRED;
}
memset(&etypes, 0, sizeof(etypes));
if(ticket)
*ticket = t;
else