diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-05-03 14:59:27 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-05-03 15:12:09 -0400 |
commit | 005c49a063544b4005b5b7c3c28ed48c197f66ac (patch) | |
tree | 48d0e18018ac9eb03b83887527a19df236501951 /utils/mountd/auth.c | |
parent | b46c04422f2a4ae76b89bf43a21839b1c5a1fc79 (diff) | |
download | nfs-utils-005c49a063544b4005b5b7c3c28ed48c197f66ac.tar.gz nfs-utils-005c49a063544b4005b5b7c3c28ed48c197f66ac.tar.xz nfs-utils-005c49a063544b4005b5b7c3c28ed48c197f66ac.zip |
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>
Diffstat (limited to 'utils/mountd/auth.c')
0 files changed, 0 insertions, 0 deletions