+
+ if (l < 4)
+ {
+ log(1, 0, s, t, "Short CHAP %u bytes\n", l);
+ STAT(tunnel_rx_errors);
+ return ;
+ }
+
+ if ((hl = ntohs(*(u16 *) (p + 2))) > l)
+ {
+ log(1, 0, s, t, "Length mismatch CHAP %u/%u\n", hl, l);
+ STAT(tunnel_rx_errors);
+ return ;
+ }
+ l = hl;
+