Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2009 18:14:26 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 167452 for review
Message-ID:  <200908171814.n7HIEQ6B000359@repoman.freebsd.org>

index | next in thread | raw e-mail

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

Change 167452 by bz@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:


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908171814.n7HIEQ6B000359>