rbb         00/12/31 16:09:18

  Modified:    network_io/unix sockets.c
  Log:
  Whenever we allocate a structure from a pool, we should set it's pool
  pointer.  If we don't, then we take the chance of trying to allocate out
  of a NULL pool later.
  
  Revision  Changes    Path
  1.68      +2 -0      apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- sockets.c 2000/12/14 18:42:36     1.67
  +++ sockets.c 2001/01/01 00:09:18     1.68
  @@ -108,8 +108,10 @@
       (*new)->cntxt = p;
       (*new)->local_addr = (apr_sockaddr_t *)apr_pcalloc((*new)->cntxt,
                                                          
sizeof(apr_sockaddr_t));
  +    (*new)->local_addr->pool = p;
       (*new)->remote_addr = (apr_sockaddr_t *)apr_pcalloc((*new)->cntxt,
                                                           
sizeof(apr_sockaddr_t));
  +    (*new)->remote_addr->pool = p;
   }
   
   apr_status_t apr_create_socket(apr_socket_t **new, int ofamily, int type,
  
  
  

Reply via email to