+2000-02-28 Ezra Peisach <epeisach@mit.edu>
+
+ * proto_serv.c (proto_serv): For error return,strdup the returned
+ value from error_message to maintain its const status.
+
1999-10-26 Tom Yu <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
if (errbuf.error > 127)
errbuf.error = KRB5KRB_ERR_GENERIC;
/* Format the error message in our language */
- errmsg = error_message(kret);
+ errmsg = strdup(error_message(kret));
errbuf.text.length = strlen(errmsg);
errbuf.text.data = errmsg;
er_kret = krb5_mk_error(kcontext, &errbuf, &errout);
if (!er_kret)
krb5_write_message(kcontext, (krb5_pointer) &cl_sock, &errout);
+ if(errmsg) free(errmsg);
free(errbuf.text.data);
krb5_free_data_contents(kcontext, &errout);
}