diff options
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index 99d3ecec..85dbfb0a 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -1098,6 +1098,8 @@ ssize_t flow_write(int fd, DU_BUFF_TAILSPACE, buf, count); + if (idx < 0) + return idx; pthread_rwlock_rdlock(&ai.lock); } |