ticket: 6200
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22343
dc483132-0cff-0310-8789-
dd5450dbe970
error.error = KRB_ERR_GENERIC;
message = error_message(problem);
error.text.length = strlen(message) + 1;
- if (!(error.text.data = malloc(error.text.length))) {
+ error.text.data = strdup(message);
+ if (!error.text.data) {
retval = ENOMEM;
goto cleanup;
}
- strcpy(error.text.data, message);
if ((retval = krb5_mk_error(context, &error, &outbuf))) {
free(error.text.data);
goto cleanup;