[asterisk-commits] file: branch group/dns r432786 - /team/group/dns/res/res_resolver_unbound.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 11 11:36:13 CDT 2015
Author: file
Date: Wed Mar 11 11:36:11 2015
New Revision: 432786
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432786
Log:
If no canonical name is provided use the query name.
Modified:
team/group/dns/res/res_resolver_unbound.c
Modified: team/group/dns/res/res_resolver_unbound.c
URL: http://svnview.digium.com/svn/asterisk/team/group/dns/res/res_resolver_unbound.c?view=diff&rev=432786&r1=432785&r2=432786
==============================================================================
--- team/group/dns/res/res_resolver_unbound.c (original)
+++ team/group/dns/res/res_resolver_unbound.c Wed Mar 11 11:36:11 2015
@@ -153,7 +153,7 @@
RAII_VAR(struct ast_dns_query *, query, data, ao2_cleanup);
if (!ast_dns_resolver_set_result(query, ub_result->secure, ub_result->bogus, ub_result->rcode,
- ub_result->canonname)) {
+ S_OR(ub_result->canonname, ast_dns_query_get_name(query)))) {
int i;
char *data;
More information about the asterisk-commits
mailing list