[Heimdal-source-changes] [heimdal/heimdal] 303c62: kdc: _kdc_do_kx509 fix use after free error

GitHub noreply at github.com
Fre Jan 13 21:03:08 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: 303c62533f8f31ff149aa9114486af8df32b61f2
      https://github.com/heimdal/heimdal/commit/303c62533f8f31ff149aa9114486af8df32b61f2
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M kdc/kx509.c

  Log Message:
  -----------
  kdc: _kdc_do_kx509 fix use after free error

In _kdc_do_kx509() do not free 'principal' until after its last
use.  Move declaration to top of function and free it during the
common exit processing.

Introduced by 10a5976e450ac591d32cfa57f7e2d14621eabaa7.

Change-Id: Iaf000eb090b0fa523f04a4864c6b17058d922995




More information about the Heimdal-source-changes mailing list