Skip to content
Snippets Groups Projects
Commit 9ef275b6 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

confio: check id references if whole section removal

parent 97b04676
No related merge requests found
......@@ -1146,8 +1146,7 @@ int conf_io_unset(
// A group identifier or whole group.
} else if (node->item->type == YP_TGRP) {
upd_type = CONF_IO_TUNSET;
if (node->id_len != 0) {
assert((node->item->flags & YP_FMULTI) != 0);
if ((node->item->flags & YP_FMULTI) != 0) {
upd_flags |= node->item->var.g.id->flags;
}
assert(node->data_len == 0);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment