From: Stephan Wiesand Date: Tue, 4 Aug 2015 11:28:35 +0000 (+0200) Subject: vlserver: Use the right variable for error code in SVL_GetStats X-Git-Tag: upstream/1.6.17^2~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c1c7f4b58b1eefe7b14e33dd07d75e50d8da609f;p=packages%2Fo%2Fopenafs.git vlserver: Use the right variable for error code in SVL_GetStats Commit 6c9fe7f80e4b5d9fb21609ee6743470d39dfb8f5 missed one instance of "code" (as used on the master branch) that should have been changed to "errorcode" (as used on the 1.6 branch) as part of the cherry-pick. Fix this so that the right varlue is returned. This is a 1.6-only change. Change-Id: I97d9ac5961836843b617bab007d0c4d8bed82fef Reviewed-on: http://gerrit.openafs.org/11970 Reviewed-by: Daria Phoebe Brashear Reviewed-by: Mark Vitale Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/vlserver/vlprocs.c b/src/vlserver/vlprocs.c index 7f486c828..dd68b3bf2 100644 --- a/src/vlserver/vlprocs.c +++ b/src/vlserver/vlprocs.c @@ -2019,7 +2019,7 @@ SVL_GetStats(struct rx_call *rxcall, #ifdef notdef /* Allow users to get statistics freely */ if (!afsconf_SuperUser(vldb_confdir, rxcall, NULL)) { /* Must be in 'UserList' to use */ - code = VL_PERM; + errorcode = VL_PERM; goto end; } #endif