summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-24 22:21:08 +0100
committerTom Gundersen <teg@jklm.no>2014-03-25 12:05:59 +0100
commit41ca2c206bb70168f662200784ded59d1af22044 (patch)
tree72f045aef609b14317ec9cb575c46120a40c18a1 /src
parent5ba6e0949cef1a5b947dd59665bad1ca5066619d (diff)
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@gmail.com>"
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-rtnl/rtnl-message.c3
1 files changed, 2 insertions, 1 deletions
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],