diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c index e3fd053..8d0e9ca 100644 --- a/src/socket.c +++ b/src/socket.c @@ -199,8 +199,7 @@ int socket_send_buffer_as_reply_to_skb(struct wireguard_device *wg, struct sk_bu ret = send4(wg, skb, &endpoint, 0, NULL); else if (endpoint.addr.sa_family == AF_INET6) ret = send6(wg, skb, &endpoint, 0, NULL); - else - ret = -EAFNOSUPPORT; + /* No other possibilities if the endpoint is valid, which it is, as we checked above. */ return ret; } |