Skip to content

Commit

Permalink
Merge PR haskell-tls#352.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jan 30, 2019
2 parents 8d67e1d + c281fd7 commit 7da1ea2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/Network/TLS/Handshake/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ recvPacketHandshake ctx = do
-- | process a list of handshakes message in the recv state machine.
onRecvStateHandshake :: Context -> RecvState IO -> [Handshake] -> IO (RecvState IO)
onRecvStateHandshake _ recvState [] = return recvState
onRecvStateHandshake _ (RecvStateNext f) hms = f (Handshake hms)
onRecvStateHandshake ctx (RecvStateHandshake f) (x:xs) = do
nstate <- f x
processHandshake ctx x
Expand Down

0 comments on commit 7da1ea2

Please sign in to comment.