Merge pull request #294 from Logan007/regPayload

no payload with REGISTER
This commit is contained in:
Luca Deri 2020-07-02 17:19:10 +02:00 committed by GitHub
commit f7ea8eba21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -656,9 +656,6 @@ static int process_udp(n2n_sn_t * sss,
/* Re-encode the header. */
encode_REGISTER(encbuf, &encx, &cmn2, &reg);
/* 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. */

View File

@ -586,9 +586,6 @@ static int process_udp(n2n_sn_t * sss,
/* Re-encode the header. */
encode_REGISTER(encbuf, &encx, &cmn2, &reg);
/* 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. */