Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
More correct reaction to Null in case of error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgajda committed Mar 11, 2014
1 parent 6bbb413 commit 7a0b5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libssh2/src/Network/SSH/Client/LibSSH2/Errors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ handleNullPtr s fromPointer io = do
(r, _) <- getLastError session
case int2error r of
EAGAIN -> threadWaitSession (Just session) >> handleNullPtr s fromPointer io
_ -> throw NULL_POINTER -- TODO: should we throw the error instead?
err -> throw err -- TODO: should we throw the error instead?
else fromPointer p

-- | Get currently blocked directions
Expand Down

0 comments on commit 7a0b5bb

Please sign in to comment.