View | Details | Raw Unified | Return to bug 3464
Collapse All | Expand All

(-)a/openbsd-compat/port-net.c (-1 / +1 lines)
Lines 325-331 sys_tun_infilter(struct ssh *ssh, struct Channel *c, char *buf, int _len) Link Here
325
	len = _len;
325
	len = _len;
326
326
327
#if defined(SSH_TUN_PREPEND_AF)
327
#if defined(SSH_TUN_PREPEND_AF)
328
	if (len <= sizeof(iph) || len > sizeof(rbuf) - 4)
328
	if (len < sizeof(iph) || len > sizeof(rbuf) - 4)
329
		return -1;
329
		return -1;
330
	/* Determine address family from packet IP header. */
330
	/* Determine address family from packet IP header. */
331
	memcpy(&iph, buf, sizeof(iph));
331
	memcpy(&iph, buf, sizeof(iph));

Return to bug 3464