Changeset 1570
- Timestamp:
- 06/18/08 09:34:20 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/avl.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1569 r1570 1 1 2008-06-18 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/avl.c (cherokee_avl_get, cherokee_avl_add) 4 (cherokee_avl_del): Added sanity check. The key must not be empty. 2 5 3 6 * cherokee/Makefile.am (libcherokeeinclude_HEADERS), cherokee/trunk/cherokee/avl.c
r1439 r1570 379 379 cherokee_avl_node_t *n = NULL; 380 380 381 if (unlikely (cherokee_buffer_is_empty(key))) 382 return ret_error; 383 381 384 /* Create the new AVL node 382 385 */ … … 401 404 cherokee_avl_node_t *node = avl->root; 402 405 cint_t idx = 1; 406 407 if (unlikely (cherokee_buffer_is_empty(key))) 408 return ret_error; 403 409 404 410 if (avl->root == NULL) … … 562 568 short re; 563 569 cherokee_avl_node_t *node; 570 571 if (unlikely (cherokee_buffer_is_empty(key))) 572 return ret_error; 564 573 565 574 node = avl->root;