kadmin: ext.c -Wcalloc-transposed args
warning: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args]. Swap the args.
This commit is contained in:
@@ -92,7 +92,7 @@ do_ext_keytab(krb5_principal principal, void *data)
|
|||||||
krb5_warnx(context, "some keys for %s are corrupted in the HDB",
|
krb5_warnx(context, "some keys for %s are corrupted in the HDB",
|
||||||
unparsed);
|
unparsed);
|
||||||
}
|
}
|
||||||
keys = calloc(sizeof(*keys), princ.n_key_data);
|
keys = calloc(princ.n_key_data, sizeof(*keys));
|
||||||
if (keys == NULL) {
|
if (keys == NULL) {
|
||||||
ret = krb5_enomem(context);
|
ret = krb5_enomem(context);
|
||||||
goto out;
|
goto out;
|
||||||
@@ -118,7 +118,7 @@ do_ext_keytab(krb5_principal principal, void *data)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
keys = calloc(sizeof(*keys), n_k);
|
keys = calloc(n_k, sizeof(*keys));
|
||||||
if (keys == NULL) {
|
if (keys == NULL) {
|
||||||
ret = krb5_enomem(context);
|
ret = krb5_enomem(context);
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user