1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

dirmngr: Fix a call of calloc.

* dirmngr/ldap-parse-uri.c (ldap_parse_uri): Fix arguments.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-05-14 15:48:45 +09:00
parent 351fc6e6fa
commit 14534e72e1
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -162,7 +162,7 @@ ldap_parse_uri (parsed_uri_t *purip, const char *uri)
if (password) if (password)
{ {
puri->query = calloc (sizeof (*puri->query), 1); puri->query = calloc (1, sizeof (*puri->query));
if (!puri->query) if (!puri->query)
{ {
err = gpg_err_code_from_syserror (); err = gpg_err_code_from_syserror ();