[svn-commits] file: branch group/dns r432762 - /team/group/dns/res/res_resolver_unbound.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 11 07:05:19 CDT 2015


Author: file
Date: Wed Mar 11 07:05:13 2015
New Revision: 432762

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432762
Log:
Only allow the res_resolver_unbound module to be unloaded on shutdown.

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=432762&r1=432761&r2=432762
==============================================================================
--- team/group/dns/res/res_resolver_unbound.c (original)
+++ team/group/dns/res/res_resolver_unbound.c Wed Mar 11 07:05:13 2015
@@ -232,12 +232,13 @@
 		return AST_MODULE_LOAD_DECLINE;
 	}
 
-	if (unbound_resolver_start(resolver)) {
+	if (unbound_resolver_start(resolver) ||
+		ast_dns_resolver_register(&unbound_resolver)) {
 		unload_module();
 		return AST_MODULE_LOAD_DECLINE;
 	}
 
-	ast_dns_resolver_register(&unbound_resolver);
+	ast_module_shutdown_ref(ast_module_info->self);
 
 	return AST_MODULE_LOAD_SUCCESS;
 }




More information about the svn-commits mailing list