load_tunnel: reset scccn

If we later turn master, we want scccn already reset like when clearing a
tunnel.
This commit is contained in:
Samuel Thibault 2025-03-16 02:14:50 +01:00
parent e801ce0c4f
commit e701644d37

View file

@ -7745,6 +7745,7 @@ int load_tunnel(tunnelidt t, tunnelt *new)
ip_changed = 1;
memcpy(&tunnel[t], new, sizeof(tunnel[t]) );
tunn_local[t].scccn = -1;
//
// Clear tunnel control messages. These are dynamically allocated.