]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-check-servers-20080828
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Aug 2008 10:47:41 +0000 (10:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Aug 2008 10:47:41 +0000 (10:47 +0000)
LICENSE MIT

if the server count is zero, don't both trying

(cherry picked from commit 00fee5efee68f1647fa810dffa7ad991235d01c5)

src/WINNT/afsd/cm_server.c

index fee2435ae669413c9d443f8402e63f808d19b8ea..d322bc377167ae7fac575b9cd009d839ff0bd725 100644 (file)
@@ -290,6 +290,9 @@ void cm_CheckServers(afs_uint32 flags, cm_cell_t *cellp)
     cm_InitReq(&req);
 
     maxconns = max(cm_numFileServers,cm_numVldbServers);
+    if (maxconns == 0)
+        return;
+
     conns = (cm_conn_t **)malloc(maxconns * sizeof(cm_conn_t *));
     rxconns = (struct rx_connection **)malloc(maxconns * sizeof(struct rx_connection *));
     conntimer = (afs_int32 *)malloc(maxconns * sizeof (afs_int32));