ben 96/11/26 12:11:45
Modified: src http_main.c
Log:
Squash a bug with non-DNSed virtual hosts.
Revision Changes Path
1.90 +5 -0 apache/src/http_main.c
Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -C3 -r1.89 -r1.90
*** http_main.c 1996/11/22 03:17:07 1.89
--- http_main.c 1996/11/26 20:11:44 1.90
***************
*** 1323,1328 ****
--- 1323,1333 ----
sizeof (struct in_addr), AF_INET);
if (h != NULL)
s->server_hostname = pstrdup (pconf, (char *)h->h_name);
+ else
+ {
+ fprintf(stderr,"Failed to resolve server name (check
DNS)\n");
+ exit(0);
+ }
}
}
}