ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/vpn_tcp.C
(Generate patch)

Comparing gvpe/src/vpn_tcp.C (file contents):
Revision 1.5 by pcg, Mon Apr 7 01:28:56 2003 UTC vs.
Revision 1.6 by pcg, Mon Apr 7 01:40:54 2003 UTC

320 320
321 fcntl (fd, F_SETFL, O_NONBLOCK); 321 fcntl (fd, F_SETFL, O_NONBLOCK);
322 322
323 if (i < 12) 323 if (i < 12)
324 { 324 {
325 slog (L_ERR, _("%s: unable to do proxy-forwarding, short response"), 325 slog (L_ERR, _("(%s): unable to do proxy-forwarding, short response"),
326 (const char *)si); 326 (const char *)si);
327 error (); 327 error ();
328 } 328 }
329 else if (r[0] != 'H' || r[1] != 'T' || r[2] != 'T' || r[3] != 'P' || r[4] != '/' 329 else if (r[0] != 'H' || r[1] != 'T' || r[2] != 'T' || r[3] != 'P' || r[4] != '/'
330 || r[5] != '1' // http-major 330 || r[5] != '1' // http-major
331 || r[9] != '2') // response 331 || r[9] != '2') // response
332 { 332 {
333 slog (L_ERR, _("%s: malformed or unexpected proxy response (%.12s)"), 333 slog (L_ERR, _("(%s): malformed or unexpected proxy response (%.12s)"),
334 (const char *)si, r); 334 (const char *)si, r);
335 error (); 335 error ();
336 } 336 }
337 else 337 else
338 state = ESTABLISHED; 338 state = ESTABLISHED;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines