From f655a5a987831a31c122a5b13c5c784b04ac55d9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 13 Mar 2000 20:50:16 +0000 Subject: Correct the suffix check. svn path=/trunk/; revision=2818 --- checkalias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checkalias.c') diff --git a/checkalias.c b/checkalias.c index 7b377eb2..a16e04ca 100644 --- a/checkalias.c +++ b/checkalias.c @@ -136,7 +136,7 @@ int is_host_alias(const char *name, struct query *ctl) * ep[-1] is a valid reference. */ if (strlen(idl->id) <= namelen) - break; + continue; ep = idl->id + (strlen(idl->id) - namelen); /* a suffix led by . must match */ if (ep[-1] == '.' && !strcmp(ep, name)) -- cgit v1.2.3