mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
null check sport in pdp_recv_postoffice
This commit is contained in:
1 parent
da1a843377
commit
6684f032db
1 file changed
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user