diff options
author | Werner Koch <[email protected]> | 2017-01-19 11:55:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-01-19 11:55:44 +0000 |
commit | 55c497904dd0794ca5cfcafe369943736b0d4e62 (patch) | |
tree | ae1df8a7f2b4d75660a5d07064408a55a2fd8d15 | |
parent | build: Modernize autogen.sh. (diff) | |
download | libgpg-error-55c497904dd0794ca5cfcafe369943736b0d4e62.tar.gz libgpg-error-55c497904dd0794ca5cfcafe369943736b0d4e62.zip |
estream: Correctly set ERRNO to EOPNOTSUPP.
* src/estream.c (es_flush, es_write_nbf): Fix setting of ERRNO to
EOPNOTSUPP.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | src/estream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/estream.c b/src/estream.c index 58d5d03..045182b 100644 --- a/src/estream.c +++ b/src/estream.c @@ -1886,7 +1886,8 @@ es_flush (estream_t stream) if (! func_write) { - err = EOPNOTSUPP; + _set_errno (EOPNOTSUPP); + err = -1; goto out; } @@ -2555,7 +2556,8 @@ es_write_nbf (estream_t _GPGRT__RESTRICT stream, if (bytes_to_write && (! func_write)) { - err = EOPNOTSUPP; + _set_errno (EOPNOTSUPP); + err = -1; goto out; } |