Apply by doing: cd /usr/src patch -p0 < 004_route.patch Then build and install a new kernel. Index: sys/net/rtsock.c =================================================================== RCS file: /cvs/src/sys/net/rtsock.c,v retrieving revision 1.123 retrieving revision 1.123.2.1 diff -u -p -r1.123 -r1.123.2.1 --- sys/net/rtsock.c 20 Sep 2012 20:53:13 -0000 1.123 +++ sys/net/rtsock.c 17 May 2013 11:34:49 -0000 1.123.2.1 @@ -621,6 +621,7 @@ route_output(struct mbuf *m, ...) rn = (struct radix_node *)rt; if (rn == NULL || (rn->rn_flags & RNF_ROOT) != 0) { error = ESRCH; + rt = NULL; goto flush; } #ifndef SMALL_KERNEL