Skip to contentSkip to conversation

bug in suppress-timestamps option rev 2.0.5

Openvpn-devel CROKAERT Pierre 1 participant 1 message Feb 7, 2006

lore
Share & tools
lore
#0 lore raw

When using the suppress-timestamps option, the following option parameter is incorrectly skipped. The ++i must be remove.
REM: this is not an issue in rev 2.1 beta because the parameter count method has changed.

Rev 2.0.5

  else if (streq (p[0], "suppress-timestamps"))
    {
      ++i;    <------- to remove
      VERIFY_PERMISSION (OPT_P_GENERAL);
      options->suppress_timestamps = true;
      set_suppress_timestamps(true);
    }

Should be (there is only one parameter for this option)

  else if (streq (p[0], "suppress-timestamps"))
    {
      VERIFY_PERMISSION (OPT_P_GENERAL);
      options->suppress_timestamps = true;
      set_suppress_timestamps(true);
    }