From 41ca2c206bb70168f662200784ded59d1af22044 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 24 Mar 2014 22:21:08 +0100 Subject: sd-rtnl: message - don't try to enter unsupported containers Currently we only support containers in RTM_*LINK messages. Reported-by: "Thomas H.P. Andersen " --- src/libsystemd/sd-rtnl/rtnl-message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c index 652dc6ee81..cf40572b81 100644 --- a/src/libsystemd/sd-rtnl/rtnl-message.c +++ b/src/libsystemd/sd-rtnl/rtnl-message.c @@ -964,7 +964,8 @@ int sd_rtnl_message_enter_container(sd_rtnl_message *m, unsigned short type) { default: return -ENOTSUP; } - } + } else + return -ENOTSUP; r = rtnl_message_parse(m, &m->rta_offset_tb[m->n_containers + 1], -- cgit v1.2.3-54-g00ecf