In make_etype_list, assign *authdata before we have a chance to fail,
since we may have invalidated the previous value with realloc.
ticket: 6372
tags: pullup
target_version: 1.7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21901
dc483132-0cff-0310-8789-
dd5450dbe970
krb5_free_data(context, ad_if_relevant);
return ENOMEM;
}
+ *authdata = adata;
adata[i] = (krb5_authdata *)malloc(sizeof(krb5_authdata));
if (adata[i] == NULL) {
adata[i + 1] = NULL;
- *authdata = adata;
-
return 0;
}