Skip to content
Commit 2972cdc7 authored by Hans Wilmers's avatar Hans Wilmers Committed by Carles Cufí
Browse files

drivers: modem: ublox-sara-r4: fix getaddrinfo



The implementation of offload_getaddrinfo in this driver failed
when the node it was called with was an IP address. This condition
was never detected, and as a consequence a DNS query was done on
the IP address instead of returning it directly.

Also, the port was set first after running the DNS query.
As a consequence, if the IP address would have been returned directly,
this would have been done without a port been set.

Both errors are fixed in this patch.

Signed-off-by: default avatarHans Wilmers <hans@wilmers.no>
parent cd7a73c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment