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:
@@ -265,7 +265,7 @@ gss_accept_sec_context(OM_uint32 *minor_status,
|
|||||||
_mg_buffer_zero(output_token);
|
_mg_buffer_zero(output_token);
|
||||||
|
|
||||||
if (!*context_handle) {
|
if (!*context_handle) {
|
||||||
ctx = calloc(sizeof(*ctx), 1);
|
ctx = calloc(1, sizeof(*ctx));
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
*minor_status = ENOMEM;
|
*minor_status = ENOMEM;
|
||||||
return (GSS_S_DEFECTIVE_TOKEN);
|
return (GSS_S_DEFECTIVE_TOKEN);
|
||||||
|
Reference in New Issue
Block a user