diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-12-21 15:54:13 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-12-21 15:54:13 +0000 |
commit | 804c67a4867afb8b7ef41a3ade748cab870b788c (patch) | |
tree | 978bc55596b12d6142055e42519088a4901b8bba /lib/libnetgraph | |
parent | 6547dbdbaff0d10e29457c19876b28de348a0643 (diff) | |
download | FreeBSD-src-804c67a4867afb8b7ef41a3ade748cab870b788c.zip FreeBSD-src-804c67a4867afb8b7ef41a3ade748cab870b788c.tar.gz |
Fix socket calls on error post-r243965.
Submitted by: Garrett Cooper
Diffstat (limited to 'lib/libnetgraph')
-rw-r--r-- | lib/libnetgraph/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libnetgraph/sock.c b/lib/libnetgraph/sock.c index fca3900..5f9f563 100644 --- a/lib/libnetgraph/sock.c +++ b/lib/libnetgraph/sock.c @@ -71,10 +71,10 @@ NgMkSockNode(const char *name, int *csp, int *dsp) name = NULL; /* Create control socket; this also creates the netgraph node. - If we get an EPROTONOSUPPORT then the socket node type is + If we get an EAFNOSUPPORT then the socket node type is not loaded, so load it and try again. */ if ((cs = socket(AF_NETGRAPH, SOCK_DGRAM, NG_CONTROL)) < 0) { - if (errno == EPROTONOSUPPORT) { + if (errno == EAFNOSUPPORT) { if (kldload(NG_SOCKET_KLD) < 0) { errnosv = errno; if (_gNgDebugLevel >= 1) |