Fix leak in check_aliases()
This commit is contained in:
@@ -684,15 +684,18 @@ check_aliases(kadm5_server_context *contextp,
|
|||||||
break;
|
break;
|
||||||
if (!krb5_principal_compare(contextp->context, new_name, old_name))
|
if (!krb5_principal_compare(contextp->context, new_name, old_name))
|
||||||
continue;
|
continue;
|
||||||
|
free_HDB_Ext_Aliases(&iter_del.aliases);
|
||||||
match = 1;
|
match = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (match)
|
if (match)
|
||||||
continue;
|
continue;
|
||||||
ret = _kadm5_acl_check_permission(contextp, KADM5_PRIV_ADD, new_name);
|
ret = _kadm5_acl_check_permission(contextp, KADM5_PRIV_ADD, new_name);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
free_HDB_Ext_Aliases(&iter.aliases);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user