Loading changes/bug1107 0 → 100644 +5 −0 Original line number Diff line number Diff line o Minor bugfixes: - Complain if PublishServerDescriptor is given multiple arguments that include 0 or 1. This configuration will be rejected in future. Bugfix in 0.2.0.1-alpha, closes bug 1107. src/or/config.c +12 −0 Original line number Diff line number Diff line Loading @@ -3578,6 +3578,18 @@ options_validate(or_options_t *old_options, or_options_t *options, if (options->AccelDir && !options->AccelName) REJECT("Can't use hardware crypto accelerator dir without engine name."); if (options->PublishServerDescriptor) SMARTLIST_FOREACH(options->PublishServerDescriptor, const char *, pubdes, { if (!strcmp(pubdes, "1") || !strcmp(pubdes, "0")) if (smartlist_len(options->PublishServerDescriptor) > 1) { COMPLAIN("You have passed a list of multiple arguments to the " "PublishServerDescriptor option that includes 0 or 1. " "0 or 1 should only be used as the sole argument. " "This configuration will be rejected in a future release."); break; } }); return 0; #undef REJECT #undef COMPLAIN Loading Loading
changes/bug1107 0 → 100644 +5 −0 Original line number Diff line number Diff line o Minor bugfixes: - Complain if PublishServerDescriptor is given multiple arguments that include 0 or 1. This configuration will be rejected in future. Bugfix in 0.2.0.1-alpha, closes bug 1107.
src/or/config.c +12 −0 Original line number Diff line number Diff line Loading @@ -3578,6 +3578,18 @@ options_validate(or_options_t *old_options, or_options_t *options, if (options->AccelDir && !options->AccelName) REJECT("Can't use hardware crypto accelerator dir without engine name."); if (options->PublishServerDescriptor) SMARTLIST_FOREACH(options->PublishServerDescriptor, const char *, pubdes, { if (!strcmp(pubdes, "1") || !strcmp(pubdes, "0")) if (smartlist_len(options->PublishServerDescriptor) > 1) { COMPLAIN("You have passed a list of multiple arguments to the " "PublishServerDescriptor option that includes 0 or 1. " "0 or 1 should only be used as the sole argument. " "This configuration will be rejected in a future release."); break; } }); return 0; #undef REJECT #undef COMPLAIN Loading