diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-06-05 11:41:54 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-06-10 12:17:02 -0500 |
commit | 6d49dccd85d7bbabb48039660630f9fe42c822d6 (patch) | |
tree | ac6abfaca3f5c6484ccdba06f2e9583d9463adb4 /main/dns_query_set.c | |
parent | b705c09dbbd99e97444aec16fb86be49e91e8fd9 (diff) |
DNS: Fix doxygen comments.
Change-Id: Icafea3fb4ea64ac027561b23cbfe2b17997dc549
Diffstat (limited to 'main/dns_query_set.c')
-rw-r--r-- | main/dns_query_set.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/dns_query_set.c b/main/dns_query_set.c index 8dfc5eaeb..147c737f6 100644 --- a/main/dns_query_set.c +++ b/main/dns_query_set.c @@ -117,6 +117,14 @@ int ast_dns_query_set_add(struct ast_dns_query_set *query_set, const char *name, return -1; } + /* + * We are intentionally passing NULL for the user data even + * though dns_query_set_callback() is not NULL tolerant. Doing + * this avoids a circular reference chain until the queries are + * started. ast_dns_query_set_resolve_async() will set the + * query user_data for us later when we actually kick off the + * queries. + */ query.query = dns_query_alloc(name, rr_type, rr_class, dns_query_set_callback, NULL); if (!query.query) { return -1; |