summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 1c5e838772..898e9e9fce 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -782,6 +782,7 @@ struct thread *funcname_thread_add_read_write(int dir, struct thread_master *m,
{
struct thread *thread = NULL;
+ assert(fd >= 0 && fd < m->fd_limit);
pthread_mutex_lock(&m->mtx);
{
if (t_ptr