[Heimdal-source-changes] [heimdal/heimdal] cc62c1: lib/krb5: fix srv_find_realm invalid gTLD test

GitHub noreply at github.com
Tors Apr 14 01:53:32 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: cc62c1a4aed3090bc75802327173a4ed66bcfc43
      https://github.com/heimdal/heimdal/commit/cc62c1a4aed3090bc75802327173a4ed66bcfc43
  Author: Jeffrey Altman <jaltman at secure-endpoints.com>
  Date:   2016-04-13 (Wed, 13 Apr 2016)

  Changed paths:
    M lib/krb5/krbhst.c

  Log Message:
  -----------
  lib/krb5: fix srv_find_realm invalid gTLD test

In srv_find_realm() the conditional for testing whether an entry
is the invalid gTLD response was inverted.  Refactor the conditional
into a helper function is_invalid_tld_srv_target().  Use the helper
to simplify the conditional making it easier to confirm that the
test is correct.

Change-Id: I3220753b5585ac535862c4617030377c7a1f4bbe




More information about the Heimdal-source-changes mailing list