]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found