From eaa1acb5439f67115353f0cc58c4a86b4477b78a Mon Sep 17 00:00:00 2001 From: Logan007 Date: Thu, 2 Jul 2020 18:02:16 +0545 Subject: [PATCH] no payload with REGISTER --- src/sn.c | 3 --- src/sn_utils.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/sn.c b/src/sn.c index 608a31c..16a599d 100644 --- a/src/sn.c +++ b/src/sn.c @@ -656,9 +656,6 @@ static int process_udp(n2n_sn_t * sss, /* Re-encode the header. */ encode_REGISTER(encbuf, &encx, &cmn2, ®); - - /* Copy the original payload unchanged */ - encode_buf(encbuf, &encx, (udp_buf + idx), (udp_size - idx)); } else { /* Already from a supernode. Nothing to modify, just pass to * destination. */ diff --git a/src/sn_utils.c b/src/sn_utils.c index c732f40..f1140d0 100644 --- a/src/sn_utils.c +++ b/src/sn_utils.c @@ -583,9 +583,6 @@ static int process_udp(n2n_sn_t * sss, /* Re-encode the header. */ encode_REGISTER(encbuf, &encx, &cmn2, ®); - - /* Copy the original payload unchanged */ - encode_buf(encbuf, &encx, (udp_buf + idx), (udp_size - idx)); } else { /* Already from a supernode. Nothing to modify, just pass to * destination. */