diff options
Diffstat (limited to 'src/input/input_net.c')
-rw-r--r-- | src/input/input_net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/input_net.c b/src/input/input_net.c index e6cd76f14..6266fd305 100644 --- a/src/input/input_net.c +++ b/src/input/input_net.c @@ -196,7 +196,8 @@ static off_t net_plugin_read (input_plugin_t *this_gen, n = read (this->fh, buf, nlen); - this->curpos += n; + if (n > 0) + this->curpos += n; return n; } |