than once, do not double free memory.
* clnt_perror.c (clnt_sperror): Do not write past end of allocated
buffer.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15114
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-01-12 Ezra Peisach <epeisach@bu.edu>
+
+ * svc_auth_gssapi.c (_svcauth_gssapi_unset_names): If invoked more
+ than once, do not double free memory.
+
+ * clnt_perror.c (clnt_sperror): Do not write past end of allocated
+ buffer.
+
2003-01-10 Ken Raeburn <raeburn@mit.edu>
* configure.in: Don't explicitly invoke AC_PROG_ARCHIVE,
strncat (str, ": ", BUFSIZ - 1 - strlen (bufstart));
str += strlen(str);
strncat (str, clnt_sperrno(e.re_status), BUFSIZ - 1 - strlen (bufstart));
- str[BUFSIZ - 1] = '\0';
+ strstart[BUFSIZ - 1] = '\0';
str += strlen(str);
switch (e.re_status) {
if (server_creds_list[i])
gss_release_cred(&minor_stat, &server_creds_list[i]);
free(server_creds_list);
+ server_creds_list = NULL;
+ server_creds_count = 0;
}
if (server_name_list) {
if (server_name_list[i])
gss_release_name(&minor_stat, &server_name_list[i]);
free(server_name_list);
+ server_name_list = NULL;
+ server_creds_count = 0;
}
}