fix write() on a file desriptor of -1, bb#5784

pull/25/head
Steve Morgan 13 years ago
parent 6b7c7dc613
commit c4e02893c9
  1. 1
      clamd/server-th.c

@ -639,6 +639,7 @@ static int handle_stream(client_conn_t *conn, struct fd_buf *buf, const struct o
pthread_mutex_unlock(&exit_mutex);
}
*error = 1;
return -1;
} else {
pos = 4;
memmove (buf->buffer, &buf->buffer[pos], buf->off - pos);

Loading…
Cancel
Save