aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-11 11:43:09 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-02 11:53:20 +0200
commitd831fb6f2bde829f9309aea242f502587662d1cc (patch)
tree4fdf6009e2757de7ab39d351b8cf7dcb316b6013 /src/libsystemd/sd-bus/bus-message.c
parentfuzz-bus-message: add two test cases that pass now (diff)
downloadsystemd-d831fb6f2bde829f9309aea242f502587662d1cc.tar.gz
systemd-d831fb6f2bde829f9309aea242f502587662d1cc.tar.bz2
systemd-d831fb6f2bde829f9309aea242f502587662d1cc.zip
bus-message: return -EBADMSG not -EINVAL on invalid !gvariant messages
Diffstat (limited to 'src/libsystemd/sd-bus/bus-message.c')
-rw-r--r--src/libsystemd/sd-bus/bus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
index 003adcf13..a484dc41c 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -5024,7 +5024,7 @@ static int message_skip_fields(
*signature += l;
} else
- return -EINVAL;
+ return -EBADMSG;
}
}