[svn-commits] simon.perreault: branch group/v6-new r266704 - /team/group/v6-new/main/dnsmgr.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 1 12:21:37 CDT 2010


Author: simon.perreault
Date: Tue Jun  1 12:21:34 2010
New Revision: 266704

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=266704
Log:
Actually use the result of address literal parsing if it is successful.

Modified:
    team/group/v6-new/main/dnsmgr.c

Modified: team/group/v6-new/main/dnsmgr.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/dnsmgr.c?view=diff&rev=266704&r1=266703&r2=266704
==============================================================================
--- team/group/v6-new/main/dnsmgr.c (original)
+++ team/group/v6-new/main/dnsmgr.c Tue Jun  1 12:21:34 2010
@@ -125,8 +125,6 @@
 
 int ast_dnsmgr_lookup(const char *name, struct ast_sockaddr *result, struct ast_dnsmgr_entry **dnsmgr, const char *service)
 {
-	struct ast_sockaddr addr;
-
 	if (ast_strlen_zero(name) || !result || !dnsmgr)
 		return -1;
 
@@ -135,7 +133,7 @@
 
 	/* if it's actually an IP address and not a name,
 	   there's no need for a managed lookup */
-	if (ast_sockaddr_parse(&addr, name, PARSE_PORT_FORBID))
+	if (ast_sockaddr_parse(result, name, PARSE_PORT_FORBID))
 		return 0;
 
 	ast_verb(4, "doing dnsmgr_lookup for '%s'\n", name);




More information about the svn-commits mailing list