X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=mts%2Fsendmail%2Fhosts.c;h=40697ce90b4501c7810bc870fe8a576a9167e92d;hb=51d3c1179979615d85205399a392fcc3ef1c4384;hp=0bc7532fee2f50df8bf6c19f48df73cd6f315966;hpb=3d251965606d6a6e47897504594f84d12e3e292a;p=mmh diff --git a/mts/sendmail/hosts.c b/mts/sendmail/hosts.c index 0bc7532..40697ce 100644 --- a/mts/sendmail/hosts.c +++ b/mts/sendmail/hosts.c @@ -13,7 +13,7 @@ */ #include -#include +#include #include static struct host { @@ -57,12 +57,13 @@ OfficialName (char *name) } if (hosts.h_name || init_hs ()) { for (h = hosts.h_next; h; h = h->h_next) - if (!strcasecmp (h->h_name, q)) + if (!strcasecmp (h->h_name, q)) { return h->h_name; - else + } else { for (r = h->h_aliases; *r; r++) if (!strcasecmp (*r, q)) return h->h_name; + } } strncpy (buffer, site, sizeof(buffer));