Revision: 14892 Author: adrian.chadd Date: Sun Jul 10 03:12:58 2011 Log: Add missing sqaddr init/free pairs
http://code.google.com/p/lusca-cache/source/detail?r=14892 Modified: /playpen/LUSCA_HEAD_ipv6/src/peer_select.c ======================================= --- /playpen/LUSCA_HEAD_ipv6/src/peer_select.c Sun Jul 10 02:19:03 2011 +++ /playpen/LUSCA_HEAD_ipv6/src/peer_select.c Sun Jul 10 03:12:58 2011 @@ -107,6 +107,8 @@ storeUnlockObject(psstate->entry); psstate->entry = NULL; } + sqinet_done(&psstate->closest_parent_miss); + sqinet_done(&psstate->first_parent_miss); cbdataFree(psstate); } @@ -150,6 +152,13 @@ #if USE_CACHE_DIGESTS request->hier.peer_select_start = current_time; #endif + sqinet_init(&psstate->closest_parent_miss); + sqinet_init(&psstate->first_parent_miss); + /* Set sensible defaults */ + sqinet_set_family(&psstate->closest_parent_miss, AF_INET); + sqinet_set_anyaddr(&psstate->closest_parent_miss); + sqinet_set_family(&psstate->first_parent_miss, AF_INET); + sqinet_set_anyaddr(&psstate->first_parent_miss); if (psstate->entry) storeLockObject(psstate->entry); cbdataLock(callback_data); -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
