libeis: fix wrong message field assignment

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-29 10:59:07 +10:00
parent b79f309a6c
commit 247b6d0dcb

View file

@ -363,7 +363,7 @@ client_parse_message(const char *data_in, size_t len)
*msg = (struct message) {
.type = MESSAGE_REMOVE_DEVICE,
.add_device.deviceid = deviceid,
.remove_device.deviceid = deviceid,
};
} else if (streq(tokens[0], "rel")) {
if (!tokens[1] || !tokens[2] || !tokens[3])