From 8efefe297268a4775504b3bf4c48fed09b231a49 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 27 Mar 2025 10:12:40 +0100 Subject: [PATCH] Fix more transposed calloc arguments. --- lib/openid20/client.c | 2 +- lib/openid20/server.c | 2 +- lib/saml20/client.c | 2 +- lib/saml20/server.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/openid20/client.c b/lib/openid20/client.c index fa1a6f67..9d9b34f4 100644 --- a/lib/openid20/client.c +++ b/lib/openid20/client.c @@ -47,7 +47,7 @@ _gsasl_openid20_client_start (Gsasl_session *sctx _GL_UNUSED, { struct openid20_client_state *state; - state = (struct openid20_client_state *) calloc (sizeof (*state), 1); + state = (struct openid20_client_state *) calloc (1, sizeof (*state)); if (state == NULL) return GSASL_MALLOC_ERROR; diff --git a/lib/openid20/server.c b/lib/openid20/server.c index 8a244ca7..55bbb7e1 100644 --- a/lib/openid20/server.c +++ b/lib/openid20/server.c @@ -45,7 +45,7 @@ _gsasl_openid20_server_start (Gsasl_session *sctx _GL_UNUSED, { struct openid20_server_state *state; - state = (struct openid20_server_state *) calloc (sizeof (*state), 1); + state = (struct openid20_server_state *) calloc (1, sizeof (*state)); if (state == NULL) return GSASL_MALLOC_ERROR; diff --git a/lib/saml20/client.c b/lib/saml20/client.c index 47dbca6a..142ede1a 100644 --- a/lib/saml20/client.c +++ b/lib/saml20/client.c @@ -46,7 +46,7 @@ _gsasl_saml20_client_start (Gsasl_session *sctx _GL_UNUSED, void **mech_data) { struct saml20_client_state *state; - state = (struct saml20_client_state *) calloc (sizeof (*state), 1); + state = (struct saml20_client_state *) calloc (1, sizeof (*state)); if (state == NULL) return GSASL_MALLOC_ERROR; diff --git a/lib/saml20/server.c b/lib/saml20/server.c index 7b285374..fe92f31e 100644 --- a/lib/saml20/server.c +++ b/lib/saml20/server.c @@ -43,7 +43,7 @@ _gsasl_saml20_server_start (Gsasl_session *sctx _GL_UNUSED, void **mech_data) { struct saml20_server_state *state; - state = (struct saml20_server_state *) calloc (sizeof (*state), 1); + state = (struct saml20_server_state *) calloc (1, sizeof (*state)); if (state == NULL) return GSASL_MALLOC_ERROR; -- 2.49.0