mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix last change
This commit is contained in:
parent
d4d61b87f1
commit
7f6fba3437
1 changed files with 2 additions and 2 deletions
|
@ -1404,7 +1404,7 @@ cmd_killdirmngr (assuan_context_t ctx, char *line)
|
|||
assuan_peercred_t cred;
|
||||
|
||||
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
||||
if (!ec && cred.uid)
|
||||
if (!ec && cred->uid)
|
||||
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
||||
if (ec)
|
||||
return set_error (ec, "no permission to kill this process");
|
||||
|
@ -1436,7 +1436,7 @@ cmd_reloaddirmngr (assuan_context_t ctx, char *line)
|
|||
assuan_peercred_t cred;
|
||||
|
||||
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
||||
if (!ec && cred.uid)
|
||||
if (!ec && cred->uid)
|
||||
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
||||
if (ec)
|
||||
return set_error (ec, "no permission to reload this process");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue