kauth: Move COUNT_REQ to beginning of block 15/13815/3
authorAndrew Deason <adeason@sinenomine.net>
Mon, 26 Aug 2019 21:08:31 +0000 (16:08 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 28 Aug 2019 06:53:07 +0000 (02:53 -0400)
commitb9b5385e6a04dcacd180f33e39495c7909fe4df3
treed2dec396c417df4a48eaf56dcd4011551911c116
parent1534302d4489d2ba1c421077cdedb0187a2c1722
kauth: Move COUNT_REQ to beginning of block

Commit b604ee7a (OPENAFS-SA-2018-002 kaserver: prevent KAM_ListEntry
information leak) added a memset in kamListEntry before COUNT_REQ, but
COUNT_REQ declares a local variable. This breaks the WINNT build,
because we must declare variables at the beginning of a block.

To fix this, just swap the two lines.

Change-Id: I47eb61e6f95c2e38c619e90c8f093de325892c63
Reviewed-on: https://gerrit.openafs.org/13815
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
src/kauth/kaprocs.c