summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind
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/rpcbind
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/rpcbind')
-rw-r--r--usr.sbin/rpcbind/rpcbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpcbind/rpcbind.c b/usr.sbin/rpcbind/rpcbind.c
index 3d11af1..fb6c99d 100644
--- a/usr.sbin/rpcbind/rpcbind.c
+++ b/usr.sbin/rpcbind/rpcbind.c
@@ -289,7 +289,7 @@ init_transport(struct netconfig *nconf)
*/
if ((fd = __rpc_nconf2fd(nconf)) < 0) {
int non_fatal = 0;
- if (errno == EPROTONOSUPPORT)
+ if (errno == EAFNOSUPPORT)
non_fatal = 1;
syslog(non_fatal?LOG_DEBUG:LOG_ERR, "cannot create socket for %s",
nconf->nc_netid);
@@ -352,7 +352,7 @@ init_transport(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;
syslog(non_fatal ? LOG_DEBUG : LOG_ERR,
OpenPOWER on IntegriCloud