diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2012-12-21 15:54:13 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-12-21 15:54:13 +0000 |
commit | a5752d55e0073d71bf3c192bbfab6363960483b5 (patch) | |
tree | 978bc55596b12d6142055e42519088a4901b8bba /lib/libnetgraph/sock.c | |
parent | a443a169067a0eaa714460cdadee2f09d22bc299 (diff) |
Fix socket calls on error post-r243965.
Submitted by: Garrett Cooper
Notes
Notes:
svn path=/head/; revision=244538
Diffstat (limited to 'lib/libnetgraph/sock.c')
-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 fca3900913df..5f9f563fe50c 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) |