Ticket #172: 6-ntlm-fix.patch
File 6-ntlm-fix.patch, 751 bytes (added by , 12 years ago) |
---|
-
openvpn-2.2.
old new 519 519 { 520 520 struct gc_arena gc = gc_new (); 521 521 char buf[512]; 522 char buf2[12 8];522 char buf2[129]; 523 523 char get[80]; 524 524 int status; 525 525 int nparms; … … 642 642 643 643 openvpn_snprintf (get, sizeof get, "%%*s NTLM %%%ds", (int) sizeof (buf2) - 1); 644 644 nparms = sscanf (buf, get, buf2); 645 buf2[12 7] = 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. */ 646 646 647 647 /* check for "Proxy-Authenticate: NTLM TlRM..." */ 648 648 if (nparms == 1)