nikitines / rpms / avahi

Forked from rpms/avahi 4 years ago
Clone

Blame SOURCES/0005-chroot-fix-bogus-assignments-in-assertions.patch

4cb3cb
From 4b48927e8e2c721d103018b4ce39a164b6c2898f Mon Sep 17 00:00:00 2001
4cb3cb
From: Michal Sekletar <msekleta@redhat.com>
4cb3cb
Date: Wed, 24 Oct 2018 15:38:48 +0000
4cb3cb
Subject: [PATCH] chroot: fix bogus assignments in assertions
4cb3cb
4cb3cb
---
4cb3cb
 avahi-daemon/chroot.c | 4 ++--
4cb3cb
 1 file changed, 2 insertions(+), 2 deletions(-)
4cb3cb
4cb3cb
diff --git a/avahi-daemon/chroot.c b/avahi-daemon/chroot.c
4cb3cb
index ccd56be..871b3b3 100644
4cb3cb
--- a/avahi-daemon/chroot.c
4cb3cb
+++ b/avahi-daemon/chroot.c
4cb3cb
@@ -188,8 +188,8 @@ static int recv_fd(int fd) {
4cb3cb
             return -1;
4cb3cb
         }
4cb3cb
 
4cb3cb
-        assert(h->cmsg_len = CMSG_LEN(sizeof(int)));
4cb3cb
-        assert(h->cmsg_level = SOL_SOCKET);
4cb3cb
+        assert(h->cmsg_len == CMSG_LEN(sizeof(int)));
4cb3cb
+        assert(h->cmsg_level == SOL_SOCKET);
4cb3cb
         assert(h->cmsg_type == SCM_RIGHTS);
4cb3cb
 
4cb3cb
         return *((int*)CMSG_DATA(h));
4cb3cb
-- 
4cb3cb
2.17.2
4cb3cb