You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by da...@apache.org on 2001/01/30 06:38:37 UTC
cvs commit: jakarta-tomcat/src/native/mod_jk/common jk_ajp13.c
danmil 01/01/29 21:38:36
Modified: src/native/mod_jk/common jk_ajp13.c
Log:
Fixing off by one error for expanding the status code integer into full
header name. Was breaking on WWW-Authenticate headers.
Revision Changes Path
1.4 +4 -3 jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c
Index: jk_ajp13.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jk_ajp13.c 2001/01/28 20:49:54 1.3
+++ jk_ajp13.c 2001/01/30 05:38:34 1.4
@@ -56,7 +56,7 @@
/***************************************************************************
* Description: Experimental bi-directionl protocol handler. *
* Author: Gal Shachor <sh...@il.ibm.com> *
- * Version: $Revision: 1.3 $ *
+ * Version: $Revision: 1.4 $ *
***************************************************************************/
@@ -576,11 +576,12 @@
if((name & 0XFF00) == 0XA000) {
jk_b_get_int(msg);
name = name & 0X00FF;
- if(name < SC_RES_HEADERS_NUM) {
+ if(name <= SC_RES_HEADERS_NUM) {
d->header_names[i] = (char *)long_res_header_for_sc(name);
} else {
jk_log(l, JK_LOG_ERROR,
- "Error ajp13_unmarshal_response - No such sc\n");
+ "Error ajp13_unmarshal_response - No such sc (%d)\n",
+ name);
return JK_FALSE;
}