summaryrefslogtreecommitdiffstats
path: root/src/send.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-17 00:12:15 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-17 00:12:15 +0200
commit5a025b23be351560065f9f880ddea7f787bba90a (patch)
treed8d2aba75c4a655d0865c27dcf522966675a024b /src/send.c
parent8ff7026b0e96234ea364a51f0174ecf49cf8bed3 (diff)
downloadfastd-5a025b23be351560065f9f880ddea7f787bba90a.tar
fastd-5a025b23be351560065f9f880ddea7f787bba90a.zip
Use the default delay before a handshake is sent when the local address is invalid
Sending it right away will make crossed handshakes more probable which is especially painful when roaming, so it's better to add the delay.
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index 2f0fb98..e429a08 100644
--- a/src/send.c
+++ b/src/send.c
@@ -126,7 +126,7 @@ static void send_type(fastd_context_t *ctx, const fastd_socket_t *sock, const fa
pr_debug2(ctx, "sendmsg failed, trying again without pktinfo");
if (peer && !fastd_peer_handshake_scheduled(ctx, peer))
- fastd_peer_schedule_handshake(ctx, peer, 0);
+ fastd_peer_schedule_handshake_default(ctx, peer);
msg.msg_control = NULL;
msg.msg_controllen = 0;