kdc: -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:
Jeffrey Altman
2024-06-03 22:26:22 -04:00
parent 1ffff7e4ff
commit 2d89b4c27c

View File

@@ -383,7 +383,7 @@ process_request(krb5_context context,
unsigned int i;
int claim = 0;
r = calloc(sizeof(*r), 1);
r = calloc(1, sizeof(*r));
if (!r)
return krb5_enomem(context);