aboutsummaryrefslogtreecommitdiff
path: root/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'dependencies')
-rw-r--r--dependencies/nDPIsrvd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dependencies/nDPIsrvd.h b/dependencies/nDPIsrvd.h
index b8076d919..8132c0f19 100644
--- a/dependencies/nDPIsrvd.h
+++ b/dependencies/nDPIsrvd.h
@@ -717,6 +717,7 @@ static inline enum nDPIsrvd_read_return nDPIsrvd_read(struct nDPIsrvd_socket * c
return READ_OK;
}
+ errno = 0;
ssize_t bytes_read =
read(sock->fd, sock->buffer.buf.ptr.raw + sock->buffer.buf.used, sock->buffer.buf.max - sock->buffer.buf.used);