]> granicus.if.org Git - curl/commit
SSH: three state machine fixups
authorDaniel Stenberg <daniel@haxx.se>
Sun, 2 Aug 2015 20:50:31 +0000 (22:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 2 Aug 2015 20:50:31 +0000 (22:50 +0200)
commitc4eb10e2f06fbd6cc904f1d78e4c7c5cc1afde63
tree392e9e76194a90c1e64cced79bf39366027e68be
parent3b4ee0d432d4e8e929dcbd564b10e14653896f20
SSH: three state machine fixups

The SSH state machine didn't clear the 'rc' variable appropriately in a
two places which prevented it from looping the way it should. And it
lacked an 'else' statement that made it possible to erroneously get
stuck in the SSH_AUTH_AGENT state.

Reported-by: Tim Stack
Closes #357
lib/ssh.c