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. */