diff options
Diffstat (limited to '')
-rw-r--r-- | sm/delete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/delete.c b/sm/delete.c index 56d5b1f..b68a084 100644 --- a/sm/delete.c +++ b/sm/delete.c @@ -83,7 +83,7 @@ delete_one (ctrl_t ctrl, const char *username) next_ambigious: rc = keydb_search (ctrl, kh, &desc, 1); - if (rc == -1) + if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND) rc = 0; else if (!rc) { @@ -107,7 +107,7 @@ delete_one (ctrl_t ctrl, const char *username) } if (rc) { - if (rc == -1) + if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND) rc = gpg_error (GPG_ERR_NO_PUBKEY); log_error (_("certificate '%s' not found: %s\n"), username, gpg_strerror (rc)); |