ben 96/08/24 09:04:55
Modified: src http_protocol.c Log: Undo last change, it was misguided. But make check_hostalias static since it only really works once. Revision Changes Path 1.44 +3 -4 apache/src/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apache/src/http_protocol.c,v retrieving revision 1.43 retrieving revision 1.44 diff -C3 -r1.43 -r1.44 *** http_protocol.c 1996/08/24 15:48:21 1.43 --- http_protocol.c 1996/08/24 16:04:54 1.44 *************** *** 50,56 **** * */ ! /* $Id: http_protocol.c,v 1.43 1996/08/24 15:48:21 ben Exp $ */ /* * http_protocol.c --- routines which directly communicate with the --- 50,56 ---- * */ ! /* $Id: http_protocol.c,v 1.44 1996/08/24 16:04:54 ben Exp $ */ /* * http_protocol.c --- routines which directly communicate with the *************** *** 572,579 **** } } ! void check_hostalias (request_rec *r) { ! char *savehost=r->hostname; char *host = getword(r->pool, &r->hostname, ':'); /* Get rid of port */ int port = (*r->hostname) ? atoi(r->hostname) : 80; server_rec *s; --- 572,578 ---- } } ! static void check_hostalias (request_rec *r) { char *host = getword(r->pool, &r->hostname, ':'); /* Get rid of port */ int port = (*r->hostname) ? atoi(r->hostname) : 80; server_rec *s; *************** *** 587,593 **** host[l] = '\0'; } ! r->hostname = savehost; for (s = r->server->next; s; s = s->next) { char *names = s->names; --- 586,592 ---- host[l] = '\0'; } ! r->hostname = host; for (s = r->server->next; s; s = s->next) { char *names = s->names;