gssapi/mech: -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:56 -04:00
parent 2d89b4c27c
commit 5ba8b7f177

View File

@@ -265,7 +265,7 @@ gss_accept_sec_context(OM_uint32 *minor_status,
_mg_buffer_zero(output_token);
if (!*context_handle) {
ctx = calloc(sizeof(*ctx), 1);
ctx = calloc(1, sizeof(*ctx));
if (!ctx) {
*minor_status = ENOMEM;
return (GSS_S_DEFECTIVE_TOKEN);