Re: [PATCH 3/3] net: dns: return error codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 29, 2018 at 11:21:27AM +0100, Sascha Hauer wrote:
> The resolv() function used to return the IP address. When net_udp_new()
> fails we return an error code though which the callers of resolv() take
> as an IP address. This is wrong of course and we could return 0 in this
> case. Instead we return an error code and pass the resolved IP as a
> pointer which allows us to return proper error codes.
> 
> This patch also adds error messages and error returns to the various
> callers of resolv() which used to just continue with a zero IP and
> let the user figure out what went wrong.
> 
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

Thanks, that looks good, thanks.

Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux