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:47:49 UTC

cvs commit: jakarta-tomcat/src/native/jk jk_ajp13.c

danmil      01/01/29 21:47:48

  Modified:    src/native/jk Tag: tomcat_32 jk_ajp13.c
  Log:
  Fixing off by one error for expanding the status code integer into full
  name.
  
  (Doesn't actually visibly break anything in the 3.2 branch, because of a
  mistake on the Java side in Ajp13ConnectorResponse, but better safe than
  sorry).
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.3   +4 -3      jakarta-tomcat/src/native/jk/Attic/jk_ajp13.c
  
  Index: jk_ajp13.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/jk/Attic/jk_ajp13.c,v
  retrieving revision 1.5.2.2
  retrieving revision 1.5.2.3
  diff -u -r1.5.2.2 -r1.5.2.3
  --- jk_ajp13.c	2000/11/04 23:48:11	1.5.2.2
  +++ jk_ajp13.c	2001/01/30 05:47:47	1.5.2.3
  @@ -56,7 +56,7 @@
   /***************************************************************************
    * Description: Experimental bi-directionl protocol handler.               *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
  - * Version:     $Revision: 1.5.2.2 $                                           *
  + * Version:     $Revision: 1.5.2.3 $                                           *
    ***************************************************************************/
   
   
  @@ -547,11 +547,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;
                       }