mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 05:43:59 +00:00
Fix a problem which stopped this from starting up on a kernel compiled
without the INET6 option.
This commit is contained in:
parent
64d1b2c64f
commit
5b0981f086
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178033
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue