Author: toad
Date: 2007-01-16 19:13:41 +0000 (Tue, 16 Jan 2007)
New Revision: 11602
Modified:
trunk/freenet/src/freenet/node/fcp/ClientRequest.java
Log:
Dump old requests with no ClientName.
Modified: trunk/freenet/src/freenet/node/fcp/ClientRequest.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientRequest.java 2007-01-16
19:04:05 UTC (rev 11601)
+++ trunk/freenet/src/freenet/node/fcp/ClientRequest.java 2007-01-16
19:13:41 UTC (rev 11602)
@@ -145,6 +145,11 @@
public static ClientRequest readAndRegister(BufferedReader br,
FCPServer server) throws IOException {
SimpleFieldSet fs = new SimpleFieldSet(br);
String clientName = fs.get("ClientName");
+ if(clientName == null) {
+ 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)