kauth: Don't overflow cellinfo hostAddrs array
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 1 Mar 2013 11:22:26 +0000 (11:22 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 4 Mar 2013 03:01:22 +0000 (19:01 -0800)
commit30e25c74376dd8aa24018116015e57c47c1dfaf9
tree42d15a1bd63e257c770e42e89292e94e9112dd3f
parentc0fba6eab519bd1bb6929b788361219f97da7212
kauth: Don't overflow cellinfo hostAddrs array

The hostaddrs array has MAXHOSTSPERCELL (8) available elements.
The ubik connections list has MAXSERVERS (20) elements - when copying
from the ubik list into the cellinfo hostaddrs list, be careful not
to overflow it.

Caught by coverity (#985577)

Change-Id: Ie51cb939a6e3381a285787ad125342ca7a9e7cbb
Reviewed-on: http://gerrit.openafs.org/9323
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/kauth/kaserver.c