Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C62BED.8C92C3B4" Message-ID: <9C8E8B77B6BAD3418C916FFE1185189302C285@...545...> From: "CROKAERT Pierre" Subject: [Openvpn-devel] bug in suppress-timestamps option rev 2.0.5 Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue Feb 7 11:19:04 2006 To: openvpn-devel@lists.sourceforge.net This is a multi-part message in MIME format. ------_=_NextPart_001_01C62BED.8C92C3B4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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. =20 Rev 2.0.5 =20 else if (streq (p[0], "suppress-timestamps")) { ++i; <------- to remove VERIFY_PERMISSION (OPT_P_GENERAL); options->suppress_timestamps =3D true; set_suppress_timestamps(true); } =20 Should be (there is only one parameter for this option) =20 else if (streq (p[0], "suppress-timestamps")) { VERIFY_PERMISSION (OPT_P_GENERAL); options->suppress_timestamps =3D true; set_suppress_timestamps(true); } =20 =20 ------_=_NextPart_001_01C62BED.8C92C3B4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
When using the suppress-timestamps option, the=20 following option parameter is incorrectly skipped. The ++i must be=20 remove.
REM: this is not an issue in rev 2.1 beta becaus= e the=20 parameter count method has changed.
 
Rev=20 2.0.5
 
  else if (streq (p[0],=20 "suppress-timestamps"))
   =20 {
      ++i;    <------- to=20 remove
      VERIFY_PERMISSION=20 (OPT_P_GENERAL);
     =20 options->suppress_timestamps =3D true;
     = =20 set_suppress_timestamps(true);
    }

 
Should be= (there is=20 only one parameter for this option)
 
  else if (streq (p[0],=20 "suppress-timestamps"))
   =20 {
      VERIFY_PERMISSION=20 (OPT_P_GENERAL);
     =20 options->suppress_timestamps =3D true;
     = =20 set_suppress_timestamps(true);
    }
 
 
------_=_NextPart_001_01C62BED.8C92C3B4--