diff options
Diffstat (limited to 'server/tools/tools_util.c')
-rw-r--r-- | server/tools/tools_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tools/tools_util.c b/server/tools/tools_util.c index 1e0e91de..79f73ac6 100644 --- a/server/tools/tools_util.c +++ b/server/tools/tools_util.c @@ -108,7 +108,8 @@ int get_domain_by_id(struct tools_ctx *ctx, if (id) { for (dom = ctx->domains; dom; dom = dom->next) { - if (id >= dom->id_min && id <= dom->id_max) { + if (id >= dom->id_min && + (dom->id_max == 0 || id <= dom->id_max)) { break; } } |