bos: Don't set up the conenction twice in AddKey
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 21 Feb 2013 21:29:56 +0000 (21:29 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Sun, 24 Feb 2013 13:22:26 +0000 (05:22 -0800)
commit6ef224da14da88318ede836a2c80998299c93e2f
tree0056a7b4cedd6094cc95dd58069ba336aa3d7cc8
parent7684dbd82a4ff4883fed40f3a84269d93fa23e4b
bos: Don't set up the conenction twice in AddKey

AddKey calls GetConn twice - once at the start of the function,
and then again immediately before calling BOZO_AddKey. This leaks
a connection...

Caught by clang-analyzer

Change-Id: I5c593de56e7f61fb21b973a34bea1a5b4f4a3177
Reviewed-on: http://gerrit.openafs.org/9230
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/bozo/bos.c