summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal-byteswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-marshal-byteswap.c')
-rw-r--r--dbus/dbus-marshal-byteswap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dbus/dbus-marshal-byteswap.c b/dbus/dbus-marshal-byteswap.c
index 6af5e5e4..c5e92b32 100644
--- a/dbus/dbus-marshal-byteswap.c
+++ b/dbus/dbus-marshal-byteswap.c
@@ -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;