]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix reporting errors with `gai_strerror(..)`
authorngie <ngie@FreeBSD.org>
Sat, 26 Jan 2019 03:43:12 +0000 (03:43 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 26 Jan 2019 03:43:12 +0000 (03:43 +0000)
commit4ccbd3e676ceb606a9ead9f64feec30562d40d3b
treeb5a73e44f65831a0d4baf922522f8577b6558e91
parent891216e34bc3aa7ea40a9b2f085e907da6f84fd1
Fix reporting errors with `gai_strerror(..)`

The return value (`err`) should be checked; not the `errno` value.

PR: 235200
Approved by: emaste (mentor)
Reviewed by: asomers, lwhsu
MFC after: 28 days
MFC with: r343362, r343365, r343367-r343368
Differential Revision: https://reviews.freebsd.org/D18969
lib/libc/tests/sys/sendfile_test.c