diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c index 4e860096c..6f593ff6b 100644 --- a/tools/gpg-wks-client.c +++ b/tools/gpg-wks-client.c @@ -1978,7 +1978,7 @@ mirror_one_key (estream_t key) continue; /* No mail box or already processed. */ if (uid->expired) continue; - if (!domain_matches_mbox (domain, uid->mbox)) + if (*domain && !domain_matches_mbox (domain, uid->mbox)) continue; /* We don't want this one. */ if (is_in_blacklist (uid->mbox)) continue;