Add an entry for README.manpages
[mmh] / mts / sendmail / hosts.c
index 0bc7532..40697ce 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include <h/mh.h>
-#include <zotnet/mts/mts.h>
+#include <mts/generic/mts.h>
 #include <netdb.h>
 
 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));