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

Comparing gvpe/src/vpn_dns.C (file contents):
Revision 1.54 by root, Tue Oct 18 11:07:28 2011 UTC vs.
Revision 1.55 by root, Tue Oct 18 11:11:32 2011 UTC

397 return true; 397 return true;
398} 398}
399 399
400vpn_packet *byte_stream::get () 400vpn_packet *byte_stream::get ()
401{ 401{
402 if (fill < 2)
403 return 0;
404
405 unsigned int len; 402 unsigned int len;
406 403
407 for (;;) 404 for (;;)
408 { 405 {
406 if (fill < 2)
407 return 0;
408
409 len = (data [0] << 8) | data [1]; 409 len = (data [0] << 8) | data [1];
410 410
411 if (len <= MAXSIZE) 411 if (len <= MAXSIZE)
412 break; 412 break;
413 413

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines