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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user