summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-22 13:40:00 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-22 13:40:00 +0200
commit39e8956d056b6b3cb886cdc2ff7eae8b07b53fcc (patch)
tree5d9741121a414a29450357388eb9b70270ce59d3 /main.c
parent6a0ce89e1110cb49ed1c00bec2d96073b9378cb3 (diff)
Properly hook up igmp with announce
Diffstat (limited to 'main.c')
-rw-r--r--main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/main.c b/main.c
index 86681e8..f0cc399 100644
--- a/main.c
+++ b/main.c
@@ -501,11 +501,11 @@ cfg_apply()
CAPNG_DROP_SUPP_GRP | CAPNG_CLEAR_BOUNDING))
die("capng_change_id failed");
} else {
- if (capng_apply(CAPNG_SELECT_BOTH)) {
- capng_clear(CAPNG_SELECT_BOTH);
- if (capng_apply(CAPNG_SELECT_BOTH))
- die("capng_apply failed");
- }
+ /*
+ * This can fail if any of the caps are lacking, but it'll
+ * be re-checked later.
+ */
+ capng_apply(CAPNG_SELECT_BOTH);
setgroups(0, NULL);
}
@@ -596,7 +596,8 @@ main(int argc, char **argv)
announce_init();
- announce_start();
+ if (!cfg->igmp)
+ announce_start(0);
idle_init();