-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I added debug information to check which ssh_options_set() on earth returned the random error. I found it was always this line.
Line 544 in b2e7c40
| _CKERR(ssh_options_set(ses, SSH_OPTIONS_TIMEOUT, &contim)); |
I searched the libssh documentation, and it stated SSH_OPTIONS_TIMEOUT and SSH_OPTIONS_TIMEOUT_USEC should be of type long1. I've got a 64-bit machine, so typically, int is 4-byte long, whereas long is 8-byte long on my machine. So I suspected the mismatched integer type in L78 and L82 is the root cause. I haven't verified it. Thks!
Lines 78 to 82 in b2e7c40
| int zero = 0; | |
| int verbosity = 0; | |
| int char_limit = 0; | |
| int time_limit = 0; | |
| int contim = 10; |
Footnotes
Jerry-Terrasse
Metadata
Metadata
Assignees
Labels
No labels