AcquireCreds: set principal to NULL to avoid memory corruption

GetTargetName: always send a string, even though we don't have a targetname


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17786 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-07-01 09:28:42 +00:00
parent 923d63fd9e
commit f409403b7d

View File

@@ -501,7 +501,7 @@ HandleOP(AcquireCreds)
{
char *name, *password;
int32_t gsm_error, flags, handle = 0;
krb5_principal principal;
krb5_principal principal = NULL;
krb5_get_init_creds_opt *opt;
krb5_error_code ret;
@@ -585,6 +585,8 @@ HandleOP(GetTargetName)
{
if (targetname)
putstring(c, targetname);
else
putstring(c, "");
return 0;
}