libadmin: Don't try to release garbage connection
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 15 Feb 2013 22:34:36 +0000 (22:34 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Thu, 21 Feb 2013 12:52:08 +0000 (04:52 -0800)
commit17154a3c0afa88f7bb25e2b642fc13ee69c2b7db
treeb17dd318257bc980d0fca3cf7c7bdef14305f7bf
parenta208292dd5867f1bb964c7c38585105d249bd9f4
libadmin: Don't try to release garbage connection

In bos_ServerOpen, initalise the contents of bos_server structure
to 0 using calloc, so that if we jump to the error handling stuff
before they are assigned real values we don't end up trying to
release garbage.

Change-Id: I687d0b637833a08425e75391eb92a2dd4a150301
Reviewed-on: http://gerrit.openafs.org/9163
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/libadmin/bos/afs_bosAdmin.c