diff options
Diffstat (limited to 'src/libssh2.c')
-rw-r--r-- | src/libssh2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libssh2.c b/src/libssh2.c index 6e31c1e..f1e8d04 100644 --- a/src/libssh2.c +++ b/src/libssh2.c @@ -131,7 +131,7 @@ int prne_lssh2_ua_pwd ( const size_t pw_len = prne_nstrlen(pw); if (id_len > UINT_MAX || pw_len > UINT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } @@ -273,7 +273,7 @@ int prne_lssh2_ch_read ( { lssh2_cbctx_ch_f_t ctx; if (len > INT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } ctx.c = c; @@ -294,7 +294,7 @@ int prne_lssh2_ch_write ( { lssh2_cbctx_ch_f_t ctx; if (len > INT_MAX) { - errno = E2BIG; + errno = EOVERFLOW; return -1; } ctx.c = c; |