mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Networking: init socket null check
This commit is contained in:
parent
30bccf6266
commit
fcf602cbe2
@ -78,6 +78,9 @@ void AP_Networking::Port::udp_client_init(const uint32_t size_rx, const uint32_t
|
||||
if (!init_buffers(size_rx, size_tx)) {
|
||||
return;
|
||||
}
|
||||
if (sock != nullptr) {
|
||||
return false;
|
||||
}
|
||||
sock = new SocketAPM(true);
|
||||
if (sock == nullptr) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user