OpenSSH 3.4

I had ported OpenSSH 3.1 onto QnX 6.0, with only a few minor tweaks.
However, now that I am trying to port OpenSSH 3.4 onto QnX 6.0, I have
several problems.

I was able to compile it, using ssh-rand-helper as the PRNG. But my
server (sshd) always resets after exchanging the protocol version with
the ssh client.
On debugging, I can see that it correctly sends out and receives the
protocol versions, but then in ‘packet_set_nonblocking’ it resets the
connection with the client.

Any pointers will be greatly appreciated.