null check sport in pdp_recv_postoffice

This commit is contained in:
Katharine Chui committed 2026-01-16 11:48:25 +01:00
1 parent da1a843377
commit 6684f032db
1 file changed
+3 -1
+3 -1
View File
@@ -530,7 +530,9 @@ static int pdp_recv_postoffice(int idx, SceNetEtherAddr *saddr, uint16_t *sport,
if (saddr != NULL) {
*saddr = saddr_copy;
}
*sport = reverse_port_simple(sport_copy);
if (sport != NULL) {
*sport = reverse_port_simple(sport_copy);
}
return 0;
}