Properly update 004/005 when a rehash changes use_forward.

This commit is contained in:
Jilles Tjoelker 2011-10-25 00:38:27 +02:00
parent 717f809762
commit c55b2782fc
2 changed files with 3 additions and 1 deletions

View file

@ -104,7 +104,7 @@ construct_cflags_strings(void)
switch (chmode_flags[i]) switch (chmode_flags[i])
{ {
case MODE_EXLIMIT: case MODE_FREETARGET:
case MODE_DISFORWARD: case MODE_DISFORWARD:
if(ConfigChannel.use_forward) if(ConfigChannel.use_forward)
*ptr++ = (char) i; *ptr++ = (char) i;

View file

@ -51,6 +51,7 @@
#include "sslproc.h" #include "sslproc.h"
#include "bandbi.h" #include "bandbi.h"
#include "operhash.h" #include "operhash.h"
#include "chmode.h"
struct config_server_hide ConfigServerHide; struct config_server_hide ConfigServerHide;
@ -826,6 +827,7 @@ read_conf(FILE * file)
/* Some global values are also loaded here. */ /* Some global values are also loaded here. */
check_class(); /* Make sure classes are valid */ check_class(); /* Make sure classes are valid */
privilegeset_delete_all_illegal(); privilegeset_delete_all_illegal();
construct_cflags_strings();
} }
static void static void