summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-12-21 15:54:13 +0000
committerkevlo <kevlo@FreeBSD.org>2012-12-21 15:54:13 +0000
commit804c67a4867afb8b7ef41a3ade748cab870b788c (patch)
tree978bc55596b12d6142055e42519088a4901b8bba /usr.sbin/mountd
parent6547dbdbaff0d10e29457c19876b28de348a0643 (diff)
downloadFreeBSD-src-804c67a4867afb8b7ef41a3ade748cab870b788c.zip
FreeBSD-src-804c67a4867afb8b7ef41a3ade748cab870b788c.tar.gz
Fix socket calls on error post-r243965.
Submitted by: Garrett Cooper
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 543fc14..bc290d6 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -649,7 +649,7 @@ create_service(struct netconfig *nconf)
*/
if ((fd = __rpc_nconf2fd(nconf)) < 0) {
int non_fatal = 0;
- if (errno == EPROTONOSUPPORT &&
+ if (errno == EAFNOSUPPORT &&
nconf->nc_semantics != NC_TPI_CLTS)
non_fatal = 1;
OpenPOWER on IntegriCloud