Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15208/src/org/sblim/cimclient/internal/http
Modified Files:
Tag: Experimental
HttpConnectionHandler.java
Log Message:
2657 Potential null pointer exception in handleConnection
Index: HttpConnectionHandler.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/http/HttpConnectionHandler.java,v
retrieving revision 1.4.2.8
retrieving revision 1.4.2.9
diff -u -d -r1.4.2.8 -r1.4.2.9
--- HttpConnectionHandler.java 20 May 2013 19:15:04 -0000 1.4.2.8
+++ HttpConnectionHandler.java 21 Aug 2013 00:39:14 -0000 1.4.2.9
@@ -25,6 +25,7 @@
* 3185818 2011-02-18 blaschke-oss indicationOccured URL incorrect
* 3495662 2012-02-29 blaschke-oss Invalid HTML from HttpConnectionHandler.writeError
* 2635 2013-05-16 blaschke-oss Slowloris DoS attack for CIM indication listener port
+ * 2657 2013-08-20 blaschke-oss Potential null pointer exception in handleConnection
*/
package org.sblim.cimclient.internal.http;
@@ -214,8 +215,8 @@
"Exception while reading from server socket", e);
if (e instanceof SocketTimeoutException
- || e.getMessage().equalsIgnoreCase(
- WBEMConstants.INDICATION_DOS_EXCEPTION_MESSAGE)) {
+ || WBEMConstants.INDICATION_DOS_EXCEPTION_MESSAGE.equalsIgnoreCase(e
+ .getMessage())) {
addSuspectIP(socket.getInetAddress().getHostAddress());
}
}
|