aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2020-03-08 10:49:01 +1100
committerMatt Dunwoodie <ncon@noconroy.net>2020-03-08 10:49:01 +1100
commita590bc1d849c64d3f4deea7f5bfca54bd8837cfa (patch)
tree8baa7db49c0acb62cc77f88ad325017668bd5936
parentAttempt to send again after EADDRNOTAVAIL (diff)
downloadwireguard-openbsd-a590bc1d849c64d3f4deea7f5bfca54bd8837cfa.tar.xz
wireguard-openbsd-a590bc1d849c64d3f4deea7f5bfca54bd8837cfa.zip
Rollback last commit
-rw-r--r--src/if_wg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 93b3d1e..e37ca90 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -629,11 +629,6 @@ wg_send(struct wg_softc *sc, struct mbuf *m, struct wg_endpoint *e)
if (so != NULL) {
ret = so->so_proto->pr_usrreq(so, PRU_SEND, m, &peernam,
control, NULL);
- /* If we cannot assign the requested local IP, we attempt to
- * send again without the 'control' parameter. */
- if (ret == EADDRNOTAVAIL)
- ret = so->so_proto->pr_usrreq(so, PRU_SEND, m, &peernam,
- NULL, NULL);
} else {
ret = ENOTCONN;
m_freem(control);