aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/server.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dirmngr/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dirmngr/server.c b/dirmngr/server.c
index 5c78d64c3..008849823 100644
--- a/dirmngr/server.c
+++ b/dirmngr/server.c
@@ -1810,7 +1810,11 @@ ensure_keyserver (ctrl_t ctrl)
if (ctrl->server_local->keyservers)
return 0; /* Already set for this session. */
if (!opt.keyserver)
- return 0; /* No global option set. */
+ {
+ /* No global option set. Fall back to default: */
+ return make_keyserver_item (DIRMNGR_DEFAULT_KEYSERVER,
+ &ctrl->server_local->keyservers);
+ }
for (sl = opt.keyserver; sl; sl = sl->next)
{