[asterisk-commits] file: branch group/dns r432999 - /team/group/dns/res/res_resolver_unbound.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 16 13:06:56 CDT 2015


Author: file
Date: Mon Mar 16 13:06:55 2015
New Revision: 432999

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432999
Log:
Remove unnecessary RAII_VAR usage in res_resolver_unbound.

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=432999&r1=432998&r2=432999
==============================================================================
--- team/group/dns/res/res_resolver_unbound.c (original)
+++ team/group/dns/res/res_resolver_unbound.c Mon Mar 16 13:06:55 2015
@@ -252,7 +252,7 @@
 /*! \brief Callback invoked when resolution completes on a query */
 static void unbound_resolver_callback(void *data, int err, struct ub_result *ub_result)
 {
-	RAII_VAR(struct ast_dns_query *, query, data, ao2_cleanup);
+	struct ast_dns_query *query = data;
 
 	if (!ast_dns_resolver_set_result(query, ub_result->secure, ub_result->bogus, ub_result->rcode,
 		S_OR(ub_result->canonname, ast_dns_query_get_name(query)))) {
@@ -268,6 +268,7 @@
 	}
 
 	ast_dns_resolver_completed(query);
+	ao2_ref(query, -1);
 	ub_resolve_free(ub_result);
 }
 




More information about the asterisk-commits mailing list