summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-netlink
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-12 15:19:23 +0200
committerTom Gundersen <teg@jklm.no>2015-08-12 15:19:23 +0200
commit02d0f8a8a52297da2d77f80e2f32a7e233fd8c21 (patch)
tree4522038e07320dae3cbddcd9f71bd1e9e424a3a0 /src/libsystemd/sd-netlink
parentf19121bbaecb6d481081850ed491e8e84a2bac21 (diff)
parenta592ab6ae891ceb63c7115257a0de0c6c45a2f42 (diff)
Merge pull request #939 from karelzak/smatch
treewide: trivial issues detected by smatch
Diffstat (limited to 'src/libsystemd/sd-netlink')
-rw-r--r--src/libsystemd/sd-netlink/netlink-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-message.c b/src/libsystemd/sd-netlink/netlink-message.c
index 3ba62a6be9..aee2ced2d9 100644
--- a/src/libsystemd/sd-netlink/netlink-message.c
+++ b/src/libsystemd/sd-netlink/netlink-message.c
@@ -501,7 +501,7 @@ static int netlink_message_read_internal(sd_netlink_message *m, unsigned short t
assert_return(m, -EINVAL);
assert_return(m->sealed, -EPERM);
assert_return(data, -EINVAL);
- assert(m->n_containers <= RTNL_CONTAINER_DEPTH);
+ assert(m->n_containers < RTNL_CONTAINER_DEPTH);
assert(m->containers[m->n_containers].attributes);
assert(type < m->containers[m->n_containers].n_attributes);