summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
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 /sbin/hastd
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 'sbin/hastd')
-rw-r--r--sbin/hastd/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/parse.y b/sbin/hastd/parse.y
index a20b61a..04ea7ab 100644
--- a/sbin/hastd/parse.y
+++ b/sbin/hastd/parse.y
@@ -769,7 +769,7 @@ family_supported(int family)
int sock;
sock = socket(family, SOCK_STREAM, 0);
- if (sock == -1 && errno == EPROTONOSUPPORT)
+ if (sock == -1 && errno == EAFNOSUPPORT)
return (false);
if (sock >= 0)
(void)close(sock);
OpenPOWER on IntegriCloud