Ticket #172: 6-ntlm-fix.patch

File 6-ntlm-fix.patch, 751 bytes (added by cn, 10 years ago)

patch to fix this issue

  • openvpn-2.2.

    old new  
    519519{
    520520  struct gc_arena gc = gc_new ();
    521521  char buf[512];
    522   char buf2[128];
     522  char buf2[129];
    523523  char get[80];
    524524  int status;
    525525  int nparms;
     
    642642
    643643              openvpn_snprintf (get, sizeof get, "%%*s NTLM %%%ds", (int) sizeof (buf2) - 1);
    644644              nparms = sscanf (buf, get, buf2);
    645               buf2[127] = 0; /* we only need the beginning - ensure it's null terminated. */
     645              buf2[128] = 0; /* we only need the beginning - ensure it's null terminated. */
    646646
    647647              /* check for "Proxy-Authenticate: NTLM TlRM..." */
    648648              if (nparms == 1)