2.9BSD network fix for dtom panic

Vic Abell abe at j.cc.purdue.edu
Sat Oct 11 06:28:30 AEST 1986


Here is a fix to socket.c that will prevent a dtom panic.  The old code
created a savemap() that was not matched with a restormap().  The result
was an expected value in KDSA5 when tested in tcp_pulloutofband() in
tcp_input.c.

Vic Abell, Purdue University Computing Center


=====================================
fix to socket.c to prevent dtom panic
=====================================

----- old -----------------------------------
		sohasoutofband(so)
			struct socket *so;
		{
			mapinfo map;

wrong! =========>	savemap(map);
			if (so->so_pgrp == 0)
				return;

----- new -----------------------------------
		sohasoutofband(so)
			struct socket *so;
		{
			mapinfo map;

			if (so->so_pgrp == 0)
				return;
correct! =======>	savemap(map);



More information about the Comp.bugs.2bsd mailing list