Fix cmsg handling
[lttng-ust.git] / tests / ust-multi-test / ust-multi-test.c
index c4b4f212973958664d69592232542e9ec8470394..87352c1dee9352e65ee3efb149ef2af5098659a8 100644 (file)
@@ -203,7 +203,7 @@ static int lttcomm_recv_fd(int sock)
        }
        /* this is our fd */
        for (i = 0; i < sizeof(int); i++)
-               tmp.vc[i] = CMSG_DATA(cmsg)[0];
+               tmp.vc[i] = CMSG_DATA(cmsg)[i];
        ret = tmp.vi;
        printf("received fd %d\n", ret);
 end:
This page took 0.022685 seconds and 4 git commands to generate.