From 4e07dbbefcb9ee3308a53798582456a1d7c20951 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Mon, 16 Jun 2014 18:11:33 -0700 Subject: [PATCH] Fix state check in PeerImp::recvHello --- src/ripple/module/overlay/impl/PeerImp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/module/overlay/impl/PeerImp.h b/src/ripple/module/overlay/impl/PeerImp.h index e540e00b1..b91c82697 100644 --- a/src/ripple/module/overlay/impl/PeerImp.h +++ b/src/ripple/module/overlay/impl/PeerImp.h @@ -829,7 +829,7 @@ private: // and it must be received *exactly* once during a connection; any // other scenario constitutes a protocol violation. - if ((m_state == stateHandshaked) && (type == protocol::mtHELLO)) + if ((m_state == stateConnected) && (type != protocol::mtHELLO)) { m_journal.warning << "Protocol: HELLO expected!"; detach ("prb-hello-expected");