route and was not there before. This should prevent a recursion
in path MTU discovery with TCP over IPsec.
reported and tested Matthias Schmidt; tested and OK tobhe@
-/* $OpenBSD: tcp_subr.c,v 1.178 2021/07/08 21:07:19 bluhm Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.179 2021/07/14 21:07:36 bluhm Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
rt = in_pcbrtentry(inp);
if (rt != NULL) {
+ unsigned int orig_mtulock = (rt->rt_locks & RTV_MTU);
+
/*
* If this was not a host route, remove and realloc.
*/
if ((rt = in_pcbrtentry(inp)) == NULL)
return;
}
- if (rt->rt_locks & RTV_MTU)
+ if (orig_mtulock < (rt->rt_locks & RTV_MTU))
change = 1;
}
tcp_mss(tp, -1);