Close connection when an unexpected bitfield arrives.
commit81388c39fc6c97db6b65ece4c156057a0751f14f
authorDavid Brodsky <trekie@sinister.cz>
Mon, 4 Dec 2006 12:56:10 +0000 (4 13:56 +0100)
committerDavid Brodsky <trekie@sinister.cz>
Mon, 4 Dec 2006 12:56:10 +0000 (4 13:56 +0100)
treedca33f56445055dda7308e1a4907cf9a1b92362d
parent71488353866a4baca2302ecd6b7aaff0adff807e
Close connection when an unexpected bitfield arrives.

The protocol says that the bitfield may be sent only before any other command.
Receiving bitfield message after any other command is thus invalid and the
connection should be closed.
src/main/connection.cpp