check return value of alloc functions, from Charles Longeau
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -72,6 +72,8 @@ kadm5_s_rename_principal(void *server_handle,
|
||||
if(ent.entry.keys.val[i].salt == NULL){
|
||||
ent.entry.keys.val[i].salt =
|
||||
malloc(sizeof(*ent.entry.keys.val[i].salt));
|
||||
if(ent.entry.keys.val[i].salt == NULL)
|
||||
return ENOMEM;
|
||||
ret = copy_Salt(&salt, ent.entry.keys.val[i].salt);
|
||||
if(ret)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user