summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-08-16 19:18:14 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-08-16 19:18:14 +0200
commite7c1aac62b8ffc3480baeecd036120da4de8f516 (patch)
tree511c6d59f984fd5eb0c323ba3d81fb1a7e0563d0
parent61b57c7c8c3f8f10b7e4ab313f31d345931863cc (diff)
send: needless debugging check
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/send.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/send.c b/src/send.c
index b9a95ac..84eb6da 100644
--- a/src/send.c
+++ b/src/send.c
@@ -78,8 +78,7 @@ void packet_send_handshake_cookie(struct wireguard_device *wg, struct sk_buff *i
#ifdef DEBUG
struct sockaddr_storage addr = { 0 };
- if (initiating_skb)
- socket_addr_from_skb(&addr, initiating_skb);
+ socket_addr_from_skb(&addr, initiating_skb);
net_dbg_ratelimited("Sending cookie response for denied handshake message for %pISpfsc\n", &addr);
#endif
cookie_message_create(&packet, initiating_skb, data, data_len, sender_index, &wg->cookie_checker);