]> git.ipfire.org Git - thirdparty/gnutls.git/commit
x059: Fix asymmetry in name constraints intersection
authorMartin Ukrop <mukrop@redhat.com>
Wed, 27 Jul 2016 13:41:08 +0000 (15:41 +0200)
committerGitLab <gitlab@gitlab.com>
Fri, 29 Jul 2016 11:43:09 +0000 (11:43 +0000)
commitca573d65b73b16f1d7228000e386e5f3649442b8
tree4af7d07d19922ccf36827e20f106633850bf64f6
parentca176763ee114d172ea3a1c277607a92a07e9771
x059: Fix asymmetry in name constraints intersection

- In _gnutls_name_constraints_intersect, if *_nc had a node of some type not present in _nc2, this was preserved. However, if it was vice versa (_nc2 having a type not present in *_nc), this node was discarded.
- This is now fixed.
- Removed redundant return value check that was accidentally left when refactoring from set_datum to explicit NULL setting.

Signed-off-by: Martin Ukrop <mukrop@redhat.com>
lib/x509/name_constraints.c