]> mj.ucw.cz Git - libucw.git/blobdiff - lib/ipaccess.c
When pre-sorting a regular file, use lib/arraysort.h on an array of items
[libucw.git] / lib / ipaccess.c
index 18b1383ae6e25b5024a7b4a651a927eb9d0fa6a7..dec639209390a6b59cfb2b814313c970789b7ef3 100644 (file)
@@ -2,6 +2,9 @@
  *     Sherlock Library -- IP address access lists
  *
  *     (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -26,7 +29,7 @@ struct ipaccess_list *
 ipaccess_init(void)
 {
   /* Cannot use cfg_malloc() here as the pool can be uninitialized now */
-  struct ipaccess_list *l = malloc(sizeof(*l));
+  struct ipaccess_list *l = xmalloc(sizeof(*l));
 
   init_list(&l->l);
   return l;