Fix a problem which stopped this from starting up on a kernel compiled

without the INET6 option.
This commit is contained in:
Doug Rabson 2008-04-09 15:43:19 +00:00
parent 64d1b2c64f
commit 5b0981f086
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178033

View file

@ -1075,7 +1075,7 @@ nlm_server_main(int addr_count, char **addrs)
{
struct thread *td = curthread;
int error;
SVCPOOL *pool;
SVCPOOL *pool = NULL;
struct sockopt opt;
int portlow;
#ifdef INET6
@ -1137,7 +1137,7 @@ nlm_server_main(int addr_count, char **addrs)
#endif
memset(&sin, 0, sizeof(sin));
sin.sin_len = sizeof(sin);
sin.sin_family = AF_INET6;
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
nlm_nsm = nlm_get_rpc((struct sockaddr *) &sin, SM_PROG,
SM_VERS);
@ -1147,7 +1147,8 @@ nlm_server_main(int addr_count, char **addrs)
if (!nlm_nsm) {
printf("Can't start NLM - unable to contact NSM\n");
return (EINVAL);
error = EINVAL;
goto out;
}
pool = svcpool_create();