[systemd-commits] src/libsystemd
Tom Gundersen
tomegun at kemper.freedesktop.org
Tue Mar 25 04:06:07 PDT 2014
src/libsystemd/sd-rtnl/rtnl-message.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 41ca2c206bb70168f662200784ded59d1af22044
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Mar 24 22:21:08 2014 +0100
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 <phomes at gmail.com>"
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
index 652dc6e..cf40572 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],
More information about the systemd-commits
mailing list