martin 97/11/11 14:36:23
Modified: src/main http_core.c
Log:
Minor off-by-one error in parsing the host:port argument. Would work
without the patch, but gives correcter error message with it.
Reviewed by: Dean Gaudet, Jim Jagielski, Ken Coar
Revision Changes Path
1.136 +1 -1 apachen/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /home/cvs/apachen/src/main/http_core.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -u -r1.135 -r1.136
--- http_core.c 1997/11/08 21:42:36 1.135
+++ http_core.c 1997/11/11 22:36:22 1.136
@@ -1414,7 +1414,7 @@
if (ports != NULL)
{
if (ports == ips) return "Missing IP address";
- else if (ports[0] == '\0')
+ else if (ports[1] == '\0')
return "Address must end in :<port-number>";
*(ports++) = '\0';
} else