jfclere     2004/07/28 09:57:26

  Modified:    ajp/ajplib/test ajp.h ajp_header.c ajp_msg.c
  Log:
  Otherwise we never get the address of the ajp_msg_t.
  
  Revision  Changes    Path
  1.8       +1 -1      jakarta-tomcat-connectors/ajp/ajplib/test/ajp.h
  
  Index: ajp.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/ajp.h,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ajp.h     28 Jul 2004 16:10:03 -0000      1.7
  +++ ajp.h     28 Jul 2004 16:57:25 -0000      1.8
  @@ -264,7 +264,7 @@
    * @param rmsg      Pointer to newly created AJP message
    * @return          APR_SUCCESS or error
    */
  -apr_status_t ajp_msg_create(apr_pool_t *pool, ajp_msg_t *rmsg);
  +apr_status_t ajp_msg_create(apr_pool_t *pool, ajp_msg_t **rmsg);
   
   /**
    * Recopy an AJP Message to another
  
  
  
  1.5       +1 -1      jakarta-tomcat-connectors/ajp/ajplib/test/ajp_header.c
  
  Index: ajp_header.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/ajp_header.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ajp_header.c      28 Jul 2004 16:39:19 -0000      1.4
  +++ ajp_header.c      28 Jul 2004 16:57:25 -0000      1.5
  @@ -661,7 +661,7 @@
       ajp_msg_t *msg;
       apr_status_t rc;
   
  -    rc = ajp_msg_create(r->pool,msg);
  +    rc = ajp_msg_create(r->pool,&msg);
       if (rc != APR_SUCCESS) {
           ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
                  "ajp_send_header: ajp_msg_create failed");
  
  
  
  1.6       +2 -2      jakarta-tomcat-connectors/ajp/ajplib/test/ajp_msg.c
  
  Index: ajp_msg.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/ajp/ajplib/test/ajp_msg.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ajp_msg.c 28 Jul 2004 16:13:40 -0000      1.5
  +++ ajp_msg.c 28 Jul 2004 16:57:25 -0000      1.6
  @@ -506,7 +506,7 @@
    * @param rmsg      Pointer to newly created AJP message
    * @return          APR_SUCCESS or error
    */
  -apr_status_t ajp_msg_create(apr_pool_t *pool, ajp_msg_t *rmsg)
  +apr_status_t ajp_msg_create(apr_pool_t *pool, ajp_msg_t **rmsg)
   {
       ajp_msg_t *msg = (ajp_msg_t *)apr_pcalloc(pool, sizeof(ajp_msg_t));
   
  @@ -528,7 +528,7 @@
   
       msg->len = 0;
       msg->headerLen = AJP_HEADER_LEN;
  -    rmsg = msg;
  +    *rmsg = msg;
       
       return APR_SUCCESS;
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to