summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-10-12 18:12:05 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-10-13 10:03:47 +0200
commit7a98128e053ccd59203757982f7332ed5e4568ea (patch)
tree8933b54692dabb4f8713d3e0f1689b49a1fae0ea /src/lib/dev.c
parent281eaf854247703ed36725ab9dbef3a11d860c5c (diff)
downloadouroboros-7a98128e053ccd59203757982f7332ed5e4568ea.tar.gz
ouroboros-7a98128e053ccd59203757982f7332ed5e4568ea.zip
lib: Re-enable multi-block support
Multi-block support was forgotten during the update of the build system. This enables it again and fixes some bugs when it is disabled and larger SDUs are sent.
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 9cb6f2ed..e6e5b4d4 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1095,6 +1095,8 @@ ssize_t flow_write(int fd,
DU_BUFF_TAILSPACE,
buf,
count);
+ if (idx < 0)
+ return idx;
pthread_rwlock_rdlock(&ai.lock);
}