- } else { /* Scan The host aliases */
- for(alias=hp->h_aliases; *alias!=0 &&
- strncmp(q, *alias, 7) != 0; ++alias)
- ;
- if (strncmp(q, *alias, 7) != 0) {
- logent(q, "FORGED HOSTNAME");
- logent(inet_ntoa(from.sin_addr), "ORIGINATED AT");
- omsg('R',"You're not who you claim to be");
- cleanup(0);
- }
-#ifdef DEBUG
- if (Debug> 99)
- logent(q,"Found in host Tables");
-#endif
+ } else {
+ logent(hp->h_name, "FORGED HOSTNAME");
+ logent(inet_ntoa(from.sin_addr), "ORIGINATED AT");
+ logent(PhoneNumber, "SHOULD BE");
+ sprintf(wkpre, "You're not who you claim to be: %s != %s", hp->h_name, PhoneNumber);
+ omsg('R', wkpre, Ofn);
+ cleanup(0);