diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-22 13:40:00 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-22 13:40:00 +0200 |
commit | 39e8956d056b6b3cb886cdc2ff7eae8b07b53fcc (patch) | |
tree | 5d9741121a414a29450357388eb9b70270ce59d3 /main.c | |
parent | 6a0ce89e1110cb49ed1c00bec2d96073b9378cb3 (diff) |
Properly hook up igmp with announce
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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(); |