From: Jeffrey Altman Date: Sun, 2 May 2010 13:16:29 +0000 (-0400) Subject: Windows: getAFSServer wrong variable used in uncompiled code X-Git-Tag: openafs-devel-1_5_75~341 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=715670cbe968ee499a29f9477626962dd74c01dd;p=packages%2Fo%2Fopenafs.git Windows: getAFSServer wrong variable used in uncompiled code In the uncompiled implementation of getAFSServer, the unmodified 'cellname' is used in the send_DNS_AFSDB_Query call instead of the properly constructed 'query' variable. LICENSE MIT Change-Id: I9de506a2986872ab88aeea158aa43133efc75d50 Reviewed-on: http://gerrit.openafs.org/1882 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_dns.c b/src/WINNT/afsd/cm_dns.c index 73d1b9286..6b1e1a92c 100644 --- a/src/WINNT/afsd/cm_dns.c +++ b/src/WINNT/afsd/cm_dns.c @@ -673,7 +673,7 @@ int getAFSServer(const char *service, const char *protocol, const char *cellName StringCbCatA(query, sizeof(query), "."); } - rc = send_DNS_AFSDB_Query(cellName,commSock,sockAddr, buffer); + rc = send_DNS_AFSDB_Query(query,commSock,sockAddr, buffer); if (rc < 0) { closesocket(commSock); fprintf(stderr,"getAFSServer: send_DNS_AFSDB_Query failed\n");