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:
parent
351fc6e6fa
commit
14534e72e1
@ -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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user