(get_pa_etype_info): check return value from malloc

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6392 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-03 02:26:52 +00:00
parent 6e2c225c70
commit 509f66086f

View File

@@ -293,6 +293,10 @@ get_pa_etype_info(METHOD_DATA *md, hdb_entry *client)
}
len = length_ETYPE_INFO(&pa);
buf = malloc(len);
if (buf) {
free_ETYPE_INFO(&pa);
return ret;
}
ret = encode_ETYPE_INFO(buf + len - 1, len, &pa, &len);
free_ETYPE_INFO(&pa);
if(ret) {