[freenet-cvs] r11603 - trunk/freenet/src/freenet/node/fcp

toad at freenetproject.org toad at freenetproject.org
Tue Jan 16 19:14:59 UTC 2007


Author: toad
Date: 2007-01-16 19:14:46 +0000 (Tue, 16 Jan 2007)
New Revision: 11603

Modified:
   trunk/freenet/src/freenet/node/fcp/ClientRequest.java
Log:
Doh (see previous)

Modified: trunk/freenet/src/freenet/node/fcp/ClientRequest.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientRequest.java	2007-01-16 19:13:41 UTC (rev 11602)
+++ trunk/freenet/src/freenet/node/fcp/ClientRequest.java	2007-01-16 19:14:46 UTC (rev 11603)
@@ -145,12 +145,12 @@
 	public static ClientRequest readAndRegister(BufferedReader br, FCPServer server) throws IOException {
 		SimpleFieldSet fs = new SimpleFieldSet(br);
 		String clientName = fs.get("ClientName");
-		if(clientName == null) {
+		boolean isGlobal = Fields.stringToBool(fs.get("Global"), false);
+		if(clientName == null && !isGlobal) {
 			Logger.error(ClientRequest.class, "Discarding old request with no ClientName: "+fs);
 			System.err.println("Discarding old request with no ClientName (see logs)");
 			return null;
 		}
-		boolean isGlobal = Fields.stringToBool(fs.get("Global"), false);
 		FCPClient client;
 		if(!isGlobal)
 			client = server.registerClient(clientName, server.core, null);




More information about the cvs mailing list