]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: parse ip address earlier
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 3 May 2012 18:59:27 +0000 (14:59 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 3 May 2012 19:12:09 +0000 (15:12 -0400)
commit005c49a063544b4005b5b7c3c28ed48c197f66ac
tree48d0e18018ac9eb03b83887527a19df236501951
parentb46c04422f2a4ae76b89bf43a21839b1c5a1fc79
mountd: parse ip address earlier

I don't see the point of waiting to the last minute to parse the ip
address.  If the client name isn't a legal ip address then this will
fail fairly quickly, so there's not much of a performance penalty.

Also, note the previous code incorrectly assumed client_resolve would
always return non-NULL.

Also factor out some common code.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c