aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2012-12-21 15:54:13 +0000
committerKevin Lo <kevlo@FreeBSD.org>2012-12-21 15:54:13 +0000
commita5752d55e0073d71bf3c192bbfab6363960483b5 (patch)
tree978bc55596b12d6142055e42519088a4901b8bba /sbin/hastd
parenta443a169067a0eaa714460cdadee2f09d22bc299 (diff)
downloadsrc-a5752d55e0073d71bf3c192bbfab6363960483b5.tar.gz
src-a5752d55e0073d71bf3c192bbfab6363960483b5.zip
Fix socket calls on error post-r243965.
Submitted by: Garrett Cooper
Notes
Notes: svn path=/head/; revision=244538
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 a20b61aa1f5a..04ea7ab2513e 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);