mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
Fix crash if there is no privset= in an operator{}.
This commit is contained in:
parent
bdd296d5b9
commit
7d5acab766
1 changed files with 4 additions and 3 deletions
|
@ -560,6 +560,10 @@ conf_end_oper(struct TopConf *tc)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (!yy_oper->privset)
|
||||
yy_oper->privset = privilegeset_get("default");
|
||||
|
||||
/* now, yy_oper_list contains a stack of oper_conf's with just user
|
||||
* and host in, yy_oper contains the rest of the information which
|
||||
* we need to copy into each element in yy_oper_list
|
||||
|
@ -630,9 +634,6 @@ static void
|
|||
conf_set_oper_privset(void *data)
|
||||
{
|
||||
yy_oper->privset = privilegeset_get((char *) data);
|
||||
|
||||
if (!yy_oper->privset)
|
||||
yy_oper->privset = privilegeset_get("default");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue