From: Howard Chu Date: Tue, 22 Jul 2014 02:34:31 +0000 (-0700) Subject: ITS#7027 fix bugs in prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31995b535e10c45e698b62d39db998c51f799327;p=openldap ITS#7027 fix bugs in prev commit --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 6d1bfa8e3c..de849e30d5 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -323,7 +323,7 @@ int ldap_domain2hostlist( goto out; } hostent_head[hostent_count].priority=priority; - hostent_head[hostent_count].weight=priority; + hostent_head[hostent_count].weight=weight; hostent_head[hostent_count].port=port; strncpy(hostent_head[hostent_count].hostname, host,255); hostent_count=hostent_count+1; @@ -336,7 +336,7 @@ add_size:; for(i=0; i