Issue Details (XML | Word | Printable)

Key: NET-52
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Steve Weiland
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

TFTPClient.setMaxTimeouts() param check broken

Created: 23/Sep/04 09:25 PM   Updated: 20/Sep/07 05:31 AM
Return to search
Component/s: None
Affects Version/s: Nightly Builds
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 31387


 Description  « Hide
The input check on this method inspects the instance variable it is
going to set not the input received.

Index: TFTPClient.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/net/src/java/org/apache/commons/net/
tftp/TFTPClient.java,v
retrieving revision 1.14
diff -u -r1.14 TFTPClient.java
— TFTPClient.java 29 Jun 2004 04:54:31 -0000 1.14
+++ TFTPClient.java 23 Sep 2004 13:55:24 -0000
@@ -86,7 +86,7 @@
***/
public void setMaxTimeouts(int numTimeouts)
{

  • if (__maxTimeouts < 1)
    + if (numTimeouts < 1)
    __maxTimeouts = 1;
    else
    __maxTimeouts = numTimeouts;


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Rory Winston added a comment - 23/Sep/04 09:34 PM
Fixed in CVS. Thanks.