# HG changeset patch # User Ed Swartz # Date 1277842478 18000 # Node ID 707b5fa4c1437576a49a0d6e6b0f4a6c61613287 # Parent f83f6a37088ea0e645e97f22f5aaff45b62f870a Bug 11438: Fix cause for TCFClient.dll crasher. It is a client-side bug caused by not filtering out bad inputs. diff -r f83f6a37088e -r 707b5fa4c143 connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCAPIConnection.java --- a/connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCAPIConnection.java Tue Jun 29 14:04:33 2010 -0500 +++ b/connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCAPIConnection.java Tue Jun 29 15:14:38 2010 -0500 @@ -501,9 +501,13 @@ settings = new String[1]; } else { // Add other connections here + return new Status(Status.ERROR, Activator.PLUGIN_ID, (int)TCErrorConstants.TCAPI_ERR_MEDIA_NOT_SUPPORTED, + "Unknown connection type: " + type, null); } + return finishConnect(type, settings, inConnection, inMessageOptions, inMessageIds); + } else { + return status; } - return finishConnect(type, settings, inConnection, inMessageOptions, inMessageIds); } protected void ensureWritableFile(String filePath) throws IOException { // ensure file path points to a writable regular file