windows-check-servers-20080828
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Aug 2008 10:45:45 +0000 (10:45 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Aug 2008 10:45:45 +0000 (10:45 +0000)
LICENSE MIT

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

src/WINNT/afsd/cm_server.c

index fee2435..d322bc3 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));