Browse Source

no payload with REGISTER

pull/294/head
Logan007 4 years ago
parent
commit
eaa1acb543
  1. 3
      src/sn.c
  2. 3
      src/sn_utils.c

3
src/sn.c

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

3
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, &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. */

Loading…
Cancel
Save