Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114319
b: refs/heads/master
c: 2860a02
h: refs/heads/master
i:
  114317: 0754172
  114315: a72c4e5
  114311: f6dc664
  114303: eab0809
v: v3
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Sep 29, 2008
1 parent 544ddc6 commit 3a92718
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b333c54a15a746ff6b04a684b0845a66daacef2
refs/heads/master: 2860a0227b700feb8d6e5c4f07a62a1b40d96022
14 changes: 9 additions & 5 deletions trunk/fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,12 @@ struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin,
const char *hostname,
unsigned int hostname_len)
{
struct sockaddr_in ssin = {0};
const struct sockaddr_in source = {
.sin_family = AF_UNSPEC,
};

return nlm_lookup_host(0, sin, proto, version,
hostname, hostname_len, &ssin);
hostname, hostname_len, &source);
}

/*
Expand All @@ -233,12 +235,14 @@ struct nlm_host *
nlmsvc_lookup_host(struct svc_rqst *rqstp,
const char *hostname, unsigned int hostname_len)
{
struct sockaddr_in ssin = {0};
const struct sockaddr_in source = {
.sin_family = AF_INET,
.sin_addr = rqstp->rq_daddr.addr,
};

ssin.sin_addr = rqstp->rq_daddr.addr;
return nlm_lookup_host(1, svc_addr_in(rqstp),
rqstp->rq_prot, rqstp->rq_vers,
hostname, hostname_len, &ssin);
hostname, hostname_len, &source);
}

/*
Expand Down

0 comments on commit 3a92718

Please sign in to comment.