When trying to add multiple time the same prefix, ./fullfeed/fullfeed throws
'Segmentation fault (core dumped)'.

Here is a fix :

Index: util.c
===================================================================
RCS file: /cvs/src/regress/sys/net/rtable/util.c,v
retrieving revision 1.6
diff -u -p -r1.6 util.c
--- util.c      27 Jul 2017 13:34:30 -0000      1.6
+++ util.c      22 Jun 2018 18:12:09 -0000
@@ -110,7 +110,7 @@ route_insert(unsigned int rid, sa_family
        rt_maskedcopy(dst, ndst, mask);
 
        if ((error = rtable_insert(rid, ndst, mask, NULL, 0, rt)) != 0) {
-               inet_net_satop(af, rt_key(rt), plen, ip, sizeof(ip));
+               inet_net_satop(af, ndst, plen, ip, sizeof(ip));
                errx(1, "can't add route: %s, %s\n", ip, strerror(error));
        }
        nrt = rtable_lookup(rid, dst, mask, NULL, RTP_ANY);

Reply via email to