projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #4967 from kumpera/profiler-arg-cleanup
[mono.git]
/
mono
/
btls
/
btls-bio.c
diff --git
a/mono/btls/btls-bio.c
b/mono/btls/btls-bio.c
index ea8fda67dc35096689e0e580561e7e4b68b38577..016175bea3b4c56f370f7ff512f47093c7e0e70b 100644
(file)
--- a/
mono/btls/btls-bio.c
+++ b/
mono/btls/btls-bio.c
@@
-39,8
+39,10
@@
mono_read (BIO *bio, char *out, int outl)
ret = mono->read_func (mono->instance, out, outl, &wantMore);
- if (ret < 0)
+ if (ret < 0) {
+ errno = EIO;
return -1;
+ }
if (ret > 0)
return ret;