[Heimdal-source-changes] [heimdal/heimdal] 49daca: lib/krb5: krcc_remove_cred remove dead code

GitHub noreply at github.com
Mon Dec 24 23:47:37 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: 49dacab0b8776900f908ebb498b5e2c43ee35b08
      https://github.com/heimdal/heimdal/commit/49dacab0b8776900f908ebb498b5e2c43ee35b08
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/krb5/krcache.c

  Log Message:
  -----------
  lib/krb5: krcc_remove_cred remove dead code

At the completion of the while loop the value of 'ret' cannot
be zero.  The expected value is KRB5_CC_END.  Any other value
is an error to return to the caller.  If 'ret' is KRB5_CC_END
then return krcc_end_get() result().

Change-Id: Ic2afb5a754e03d521c10a259c53fc70b86b4a132


  Commit: 17e8216927d48b3a25fa70ddaecc2c2eb912b32a
      https://github.com/heimdal/heimdal/commit/17e8216927d48b3a25fa70ddaecc2c2eb912b32a
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/krb5/krcache.c

  Log Message:
  -----------
  lib/krb5: krcache add_unique_keyring dead code removal

After the for loop 'key' cannot have the value -1.  The loop
must execute at least once resulting either in the function
returning to the caller or the value of 'key' getting set to
a value other than -1.

Change-Id: Idaf65e3cf3d22a27828ad0dd04650a4f54ba94fc


Compare: https://github.com/heimdal/heimdal/compare/6561afff3afd...17e8216927d4
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Heimdal-source-changes mailing list