Fixed so krb5_do_preauth_tryagain no longer crashes on NULL padata but
instead returns an error.
ticket: new
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20473
dc483132-0cff-0310-8789-
dd5450dbe970
if (context == NULL) {
return KRB5KRB_ERR_GENERIC;
}
-
+ if (padata == NULL) {
+ return KRB5KRB_ERR_GENERIC;
+ }
+
for (i = 0; padata[i] != NULL && padata[i]->pa_type != 0; i++) {
out_padata = NULL;
for (j = 0; j < context->n_modules; j++) {