]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: getAFSServer wrong variable used in uncompiled code
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 2 May 2010 13:16:29 +0000 (09:16 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 2 May 2010 17:38:55 +0000 (10:38 -0700)
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 <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_dns.c

index 73d1b9286ec62bd980e70e6d3d564f0fc11a46ee..6b1e1a92c7f628bb2b15525621964aa9e6e18f2d 100644 (file)
@@ -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");