summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/dirmngr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index 06bb4bae6..33de686f5 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -2348,7 +2348,7 @@ get_revision_from_blurb (const char *blurb, int *r_len)
for (; *s; s++)
if (*s == '\n' && s[1] == '(')
break;
- if (s)
+ if (*s)
{
s += 2;
for (n=0; s[n] && s[n] != ' '; n++)
@@ -2380,8 +2380,9 @@ gpgconf_versions (void)
es_fprintf (es_stdout, "* Libassuan %s (%.*s)\n\n",
assuan_check_version (NULL), n, s);
- es_fprintf (es_stdout, "* KSBA %s \n\n",
- ksba_check_version (NULL));
+ s = get_revision_from_blurb (ksba_check_version ("\x01\x01"), &n);
+ es_fprintf (es_stdout, "* KSBA %s (%.*s)\n\n",
+ ksba_check_version (NULL), n, s);
#ifdef HTTP_USE_NTBTLS
s = get_revision_from_blurb (ntbtls_check_version ("\x01\x01"), &n);