[CalendarServer-changes] [5363] CalendarServer/trunk/twext/python/sendmsg.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 19 14:29:00 PDT 2010


Revision: 5363
          http://trac.macosforge.org/projects/calendarserver/changeset/5363
Author:   glyph at apple.com
Date:     2010-03-19 14:29:00 -0700 (Fri, 19 Mar 2010)
Log Message:
-----------


Modified Paths:
--------------
    CalendarServer/trunk/twext/python/sendmsg.c

Modified: CalendarServer/trunk/twext/python/sendmsg.c
===================================================================
--- CalendarServer/trunk/twext/python/sendmsg.c	2010-03-19 21:12:12 UTC (rev 5362)
+++ CalendarServer/trunk/twext/python/sendmsg.c	2010-03-19 21:29:00 UTC (rev 5363)
@@ -293,6 +293,16 @@
          control_message = CMSG_NXTHDR(&message_header,
                                        control_message)) {
         PyObject *entry;
+
+        /* Some platforms apparently always fill out the ancillary data
+           structure with a single bogus value if none is provided; ignore it,
+           if that is the case. */
+
+        if ((!(control_message->cmsg_level)) &&
+            (!(control_message->cmsg_type))) {
+            continue;
+        }
+
         entry = Py_BuildValue(
             "(iis#)",
             control_message->cmsg_level,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100319/3a919079/attachment-0001.html>


More information about the calendarserver-changes mailing list