kdc: start_kdc avoid warning
commita1d3ab05c45b7d32b9e00a45135c6c2c774c49a3
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 19 Nov 2016 14:57:14 +0000 (19 09:57 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 19 Nov 2016 14:57:14 +0000 (19 09:57 -0500)
tree187a432434c5dac9a5f77fe9d9a8c460fb68ad2a
parent989a7c33797c8626df58725ce5c6701ee6560015
kdc: start_kdc avoid warning

The prior structure of the code was safe but can appear otherwise to
static analyzers since the assignment to pids[i] occurs after exitting
the for() loop.

While here use calloc() instead of malloc()/memset().

Change-Id: I8455aa259fd8c7c17778827937ec26127fe0785c
kdc/connect.c