unix-fd: add basic marshalling code for unix fds
[platform/upstream/dbus.git] / dbus / dbus-marshal-byteswap.c
index 6c9fff5..5f0945b 100644 (file)
@@ -191,6 +191,11 @@ byteswap_body_helper (DBusTypeReader       *reader,
           }
           break;
 
+        case DBUS_TYPE_UNIX_FD:
+          /* fds can only be passed on a local machine, so byte order must always match */
+          _dbus_assert_not_reached("attempted to byteswap unix fds which makes no sense");
+          break;
+
         default:
           _dbus_assert_not_reached ("invalid typecode in supposedly-validated signature");
           break;