From: Derrick Brashear Date: Mon, 11 Jun 2012 20:37:53 +0000 (-0400) Subject: viced: fix GetVolumePackage to not bomb always when GetClient called X-Git-Tag: openafs-stable-1_8_0pre1~2339 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=3e0eaec61e1df9341ca67b902a5ec86a863a3423;hp=3770ffe41689bc5b37795f23b0d4f3de4bc0619a viced: fix GetVolumePackage to not bomb always when GetClient called master only. already correct in 1.6. the gotos for error exit should be called only when we have an error, due to missing braces that was not true Change-Id: I396be7d34ad741e01634a702784a0892f47a2d5a Reviewed-on: http://gerrit.openafs.org/7549 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Marc Dionne Reviewed-by: Derrick Brashear --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index a3070f6..2bcab1b 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -847,9 +847,10 @@ GetVolumePackageWithCall(struct rx_call *acall, struct VCallByVol *cbv, if (!(*client)) { if ((errorCode = GetClient(tcon, client)) != 0) goto gvpdone; - if (!(*client)) + if (!(*client)) { errorCode = EINVAL; goto gvpdone; + } } GetRights(*client, aCL, rights, anyrights); /* ok, if this is not a dir, set the PRSFS_ADMINISTER bit iff we're the owner */