diff --git a/src/include/liburing.h b/src/include/liburing.h index ce7c45cf2..3e8cfafaf 100644 --- a/src/include/liburing.h +++ b/src/include/liburing.h @@ -1237,8 +1237,8 @@ io_uring_recvmsg_cmsg_nexthdr(struct io_uring_recvmsg_out *o, struct msghdr *msg if (cmsg->cmsg_len < sizeof(struct cmsghdr)) return NULL; - end = (unsigned char *) io_uring_recvmsg_cmsg_firsthdr(o, msgh) + - o->controllen; + end = (unsigned char *) io_uring_recvmsg_name(o) + + msgh->msg_namelen + o->controllen; cmsg = (struct cmsghdr *)((unsigned char *) cmsg + CMSG_ALIGN(cmsg->cmsg_len));