Get data from payload, not original packet

This commit is contained in:
Geoffrey Merck 2022-12-03 18:42:13 +01:00
parent 2a7bc246f2
commit 157d87460b
1 changed files with 3 additions and 1 deletions

View File

@ -871,7 +871,9 @@ static int filt_t (pfstate_t *pf, char * typeChar)
print_error (pf, "Invalid third party payload\n"); print_error (pf, "Invalid third party payload\n");
return (0); return (0);
} }
(void) ax25_get_info (pf->pp, (unsigned char **)(&infop)); memset (src, 0, sizeof(src));
ax25_get_addr_with_ssid (pp_payload, AX25_SOURCE, src);
(void) ax25_get_info (pp_payload, (unsigned char **)(&infop));
ax25_delete(pp_payload); ax25_delete(pp_payload);
isThirdParty = 1; isThirdParty = 1;
} }