(make_etype_info2_entry): NUL terminate the string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15398 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -422,6 +422,7 @@ make_etype_info2_entry(ETYPE_INFO2_ENTRY *ent, Key *key)
|
||||
return ENOMEM;
|
||||
}
|
||||
memcpy(*ent->salt, key->salt->salt.data, key->salt->salt.length);
|
||||
(*ent->salt)[key->salt->salt.length] = '\0';
|
||||
} else
|
||||
ent->salt = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user