Close the created file.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Use the clientid from deleg_entry.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Add a couple missing closedir() calls.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Return DELEG_REVOKED if the client is valid but state is not.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Mark the callback path down in RPC call has failed.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>