diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-24 22:21:08 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-25 12:05:59 +0100 |
commit | 41ca2c206bb70168f662200784ded59d1af22044 (patch) | |
tree | 72f045aef609b14317ec9cb575c46120a40c18a1 /src | |
parent | 5ba6e0949cef1a5b947dd59665bad1ca5066619d (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.c | 3 |
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], |