about summary refs log tree commit diff
path: root/nptl/sockperf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sockperf.c')
-rw-r--r--nptl/sockperf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/sockperf.c b/nptl/sockperf.c
index 740fb883f0..2d4b872740 100644
--- a/nptl/sockperf.c
+++ b/nptl/sockperf.c
@@ -71,7 +71,6 @@ client (void *arg)
   struct thread_param *param = arg;
   unsigned int cnt;
   unsigned int nserv = param->nserv;
-  int clisock[nserv];
   struct pollfd servpoll[nserv];
   struct sockaddr_un servaddr;
   socklen_t servlen;
@@ -102,7 +101,7 @@ client (void *arg)
   for (cnt = 0; cnt < nserv; ++cnt)
     {
       servpoll[cnt].fd = socket (AF_UNIX, SOCK_STREAM, 0);
-      if (clisock < 0)
+      if (servpoll[cnt].fd < 0)
 	{
 	  puts ("cannot create socket in client");
 	  return NULL;