diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-14 23:17:07 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-14 23:18:33 +0100 |
commit | 657bdca9e4c0f0163b8c1f139e3f6734d2e0d69a (patch) | |
tree | b56ddf8e61b5df1563efb23faeb8c450813762e0 /src/nspawn | |
parent | 2fbcde7402a26d365b6a8091b912154e6d187ee4 (diff) |
nspawn: fix an incorrect assert comparison
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 7f87e37a7f..f502500308 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1655,7 +1655,7 @@ static int watch_rtnl(sd_event *event, int recv_fd, union in_addr_union *exposed cmsg = CMSG_FIRSTHDR(&mh); assert(cmsg->cmsg_level == SOL_SOCKET); assert(cmsg->cmsg_type == SCM_RIGHTS); - assert(cmsg->cmsg_len = CMSG_LEN(sizeof(int))); + assert(cmsg->cmsg_len == CMSG_LEN(sizeof(int))); memcpy(&fd, CMSG_DATA(cmsg), sizeof(int)); r = sd_rtnl_open_fd(&rtnl, fd, 1, RTNLGRP_IPV4_IFADDR); |