Changeset 5471 for pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c
- Timestamp:
- Oct 27, 2016 5:47:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c
r5464 r5471 857 857 struct res_key key; 858 858 struct cached_res *cache; 859 pj_dns_async_query *q ;859 pj_dns_async_query *q, *p_q = NULL; 860 860 pj_uint32_t hval; 861 861 pj_status_t status = PJ_SUCCESS; … … 870 870 /* Check type */ 871 871 PJ_ASSERT_RETURN(type > 0 && type < 0xFFFF, PJ_EINVAL); 872 873 if (p_query)874 *p_query = NULL;875 872 876 873 /* Build resource key for looking up hash tables */ … … 992 989 0, q->hbufkey, q); 993 990 991 p_q = q; 992 993 on_return: 994 994 if (p_query) 995 *p_query = q; 996 997 on_return: 995 *p_query = p_q; 996 998 997 pj_mutex_unlock(resolver->mutex); 999 998 return status;
Note: See TracChangeset
for help on using the changeset viewer.