allocation failure) path.
ticket: 5997
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20482
dc483132-0cff-0310-8789-
dd5450dbe970
newpad = realloc(opte->opt_private->preauth_data, newsize);
if (newpad == NULL)
return ENOMEM;
+ opte->opt_private->preauth_data = newpad;
i = opte->opt_private->num_preauth_data;
newpad[i].attr = strdup(attr);
return ENOMEM;
}
opte->opt_private->num_preauth_data += 1;
- opte->opt_private->preauth_data = newpad;
return 0;
}