dougm       02/05/12 19:48:15

  Modified:    xs/APR/NetLib APR__NetLib.h
  Log:
  check return status from apr_ipsubnet_create
  
  Revision  Changes    Path
  1.2       +3 -0      modperl-2.0/xs/APR/NetLib/APR__NetLib.h
  
  Index: APR__NetLib.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/APR/NetLib/APR__NetLib.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- APR__NetLib.h     16 Mar 2001 00:02:50 -0000      1.1
  +++ APR__NetLib.h     13 May 2002 02:48:15 -0000      1.2
  @@ -6,5 +6,8 @@
       apr_status_t status;
       apr_ipsubnet_t *ipsub = NULL;
       status = apr_ipsubnet_create(&ipsub, ipstr, mask_or_numbits, p);
  +    if (status != APR_SUCCESS) {
  +        return NULL;
  +    }
       return ipsub;
   }
  
  
  


Reply via email to