[jcifs] A bug in 1.2.17 ?

Michael B Allen miallen at ioplex.com
Sun Nov 25 22:47:16 GMT 2007

On Sun, 25 Nov 2007 17:43:28 +0200
"Asaf Mesika" <asaf.mesika at gmail.com> wrote:

> The following condition:
> *auth.challenge != session.transport.server.encryptionKey
> *checks for equality between two byte *arrays* .

Hi Asaf,

That is not a bug.

There is a difference between checking the equality of the contents of
two byte arrays and determining if two variables refer to exactly the
same array. In the above case we are checking to see if auth.challenge
and session.transport.server.encryptionKey refer to the same exact
array object.

Don't worry, you're not the only person to report this "bug" :->


Michael B Allen
PHP Active Directory SPNEGO SSO

More information about the jcifs mailing list