[Heimdal-source-changes] [heimdal/heimdal] a1d3ab: kdc: start_kdc avoid warning

GitHub noreply at github.com
Sat Nov 19 15:59:18 CET 2016


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: a1d3ab05c45b7d32b9e00a45135c6c2c774c49a3
      https://github.com/heimdal/heimdal/commit/a1d3ab05c45b7d32b9e00a45135c6c2c774c49a3
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2016-11-19 (Sat, 19 Nov 2016)

  Changed paths:
    M kdc/connect.c

  Log Message:
  -----------
  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




More information about the Heimdal-source-changes mailing list