Infinite Loop Bug

Trent Wood <[email protected]> Mon, 6 Aug 2012 07:32:42 -0700 (PDT)
Newsgroups gmane.network.samba.java
Message-ID <[email protected]>
When running on a Solaris UNIX server, I encountered an infinite loop. The problematic code is in the readRDataWireFormat method of jcifs.netbios.NameQueryResponse. This method returns zero for the "if( resultCode != 0 || opCode != QUERY )" condition. A result of zero causes the calling method (jcifs.netbios.NameServicePacket - readResourceRecordWireFormat) to loop indefinitely. When I changed that condition to throw an exception, everything works as expected. 


Thanks!