summaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-05-14 10:31:46 +0200
committerWerner Koch <wk@gnupg.org>2019-05-14 10:31:46 +0200
commit54e96c6fd262bd0090fec836c97d7fdb04bd6129 (patch)
tree93ead3e2aac01b8317d18a31b980f7d7fec5e4e2 /agent/command-ssh.c
parentagent: correct length for uri and comment on 64-bit big-endian platforms (diff)
downloadgnupg2-54e96c6fd262bd0090fec836c97d7fdb04bd6129.tar.xz
gnupg2-54e96c6fd262bd0090fec836c97d7fdb04bd6129.zip
agent: Replace most assert by log_assert.
--
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index 727bb9b94..5f7884b1f 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -41,7 +41,6 @@
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <assert.h>
#ifndef HAVE_W32_SYSTEM
#include <sys/socket.h>
#include <sys/un.h>
@@ -1030,7 +1029,7 @@ search_control_file (ssh_control_file_t cf, const char *hexgrip,
{
gpg_error_t err;
- assert (strlen (hexgrip) == 40 );
+ log_assert (strlen (hexgrip) == 40 );
if (r_disabled)
*r_disabled = 0;
@@ -2646,7 +2645,7 @@ ssh_handler_request_identities (ctrl_t ctrl,
continue; /* Should not happen. */
if (cf->item.disabled)
continue;
- assert (strlen (cf->item.hexgrip) == 40);
+ log_assert (strlen (cf->item.hexgrip) == 40);
hex2bin (cf->item.hexgrip, grip, sizeof (grip));
err = agent_public_key_from_file (ctrl, grip, &key_public);