From 157d87460b3de267056ed980d30f7668f878d0fd Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sat, 3 Dec 2022 18:42:13 +0100 Subject: [PATCH] Get data from payload, not original packet --- src/pfilter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pfilter.c b/src/pfilter.c index 0c63243..d0f0c25 100644 --- a/src/pfilter.c +++ b/src/pfilter.c @@ -871,7 +871,9 @@ static int filt_t (pfstate_t *pf, char * typeChar) print_error (pf, "Invalid third party payload\n"); 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); isThirdParty = 1; }