Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Bad assertion in sendmsg_sendmsg() #463
narge-macosforge@… originally submitted this as ticket:443
I recently upgraded caldavd from 2.4 to trunk on a ppc linux machine. After the upgrade, caldavd dies on the first incoming connection, with an assertion failure at twext/python/sendmsg.c line 213.
This assertion states that CMSG_NXTHDR() returns non-NULL. However, it will only return non-NULL if there is space for another control message. Thus, the assertion always fails after copying the last control message; it should be moved to the beginning of the loop, before CMSG_NXTHDR().