Fix a bug in r353332 that snuck in with a last-minute adjustment.
Reported by: Jenkins MFC with: r353332 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
192fa3197c
commit
bc4225320c
@ -659,7 +659,7 @@ ATF_TC_BODY(empty_rights_message, tc)
|
||||
len = recvmsg(fd[1], &msghdr, 0);
|
||||
ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno));
|
||||
ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int)));
|
||||
error = close((int *)CMSG_DATA(msghdr.msg_control));
|
||||
error = close(*(int *)CMSG_DATA(msghdr.msg_control));
|
||||
ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno));
|
||||
|
||||
/*
|
||||
@ -685,7 +685,7 @@ ATF_TC_BODY(empty_rights_message, tc)
|
||||
len = recvmsg(fd[1], &msghdr, 0);
|
||||
ATF_REQUIRE_MSG(len == 0, "recvmsg failed: %s", strerror(errno));
|
||||
ATF_REQUIRE(msghdr.msg_controllen = CMSG_SPACE(sizeof(int)));
|
||||
error = close((int *)CMSG_DATA(msghdr.msg_control));
|
||||
error = close(*(int *)CMSG_DATA(msghdr.msg_control));
|
||||
ATF_REQUIRE_MSG(error == 0, "close failed: %s", strerror(errno));
|
||||
|
||||
(void)close(putfd);
|
||||
|
Loading…
Reference in New Issue
Block a user