diff options
author | NIIBE Yutaka <[email protected]> | 2024-05-14 06:48:45 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-05-14 06:48:45 +0000 |
commit | 14534e72e1135a0323b896339bd1f508a592a7be (patch) | |
tree | da716bf611d8cf8e0f27b73c90025f29bbb38d37 /dirmngr/ldap-parse-uri.c | |
parent | gpg: Algo "kyber" is now a shortcut for ky768_bp256. (diff) | |
download | gnupg-14534e72e1135a0323b896339bd1f508a592a7be.tar.gz gnupg-14534e72e1135a0323b896339bd1f508a592a7be.zip |
dirmngr: Fix a call of calloc.
* dirmngr/ldap-parse-uri.c (ldap_parse_uri): Fix arguments.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/ldap-parse-uri.c')
-rw-r--r-- | dirmngr/ldap-parse-uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ldap-parse-uri.c b/dirmngr/ldap-parse-uri.c index 573bcc77f..5856c1b4e 100644 --- a/dirmngr/ldap-parse-uri.c +++ b/dirmngr/ldap-parse-uri.c @@ -162,7 +162,7 @@ ldap_parse_uri (parsed_uri_t *purip, const char *uri) if (password) { - puri->query = calloc (sizeof (*puri->query), 1); + puri->query = calloc (1, sizeof (*puri->query)); if (!puri->query) { err = gpg_err_code_from_syserror (); |