PERFORCE change 167452 for review

Bjoern A. Zeeb bz at FreeBSD.org
Mon Aug 17 18:14:26 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=167452

Change 167452 by bz at bz_zoo on 2009/08/17 18:14:02

	I missed that we are inside a nested switch, so a single break
	is not sufficient. Also add a default case to catch unsupported
	SND messages.

Affected files ...

.. //depot/projects/soc2009/anchie_send/src/sys/net/rtsock.c#18 edit

Differences ...

==== //depot/projects/soc2009/anchie_send/src/sys/net/rtsock.c#18 (text+ko) ====

@@ -544,7 +544,7 @@
 			error = send_output_hook(n, ifp, SND_IN);
 			if (error)
 				senderr(error);
-			break;
+			goto flush;
 		case RTM_SND_OUT:
 			ifp = ifnet_byindex(rtm->rtm_index);
 			if (!ifp) {
@@ -561,7 +561,9 @@
 			error = send_output_hook(n, ifp, SND_OUT);
 			if (error)
 				senderr(error);
-			break;
+			goto flush;
+		default:
+			senderr(EOPNOTSUPP);
 		}
 
 	case RTM_ADD:


More information about the p4-projects mailing list