summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
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/ypserv
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/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c
index 69dae29..60bd6a1 100644
--- a/usr.sbin/ypserv/yp_main.c
+++ b/usr.sbin/ypserv/yp_main.c
@@ -292,7 +292,7 @@ create_service(const int sock, const struct netconfig *nconf,
s = __rpc_nconf2fd(nconf);
if (s < 0) {
- if (errno == EPROTONOSUPPORT)
+ if (errno == EAFNOSUPPORT)
_msgout("unsupported"
" transport: %s",
nconf->nc_netid);
OpenPOWER on IntegriCloud