gss: intern OID before adding to OID set
authorLuke Howard <lukeh@padl.com>
Tue, 21 Apr 2020 04:54:18 +0000 (14:54 +1000)
committerNicolas Williams <nico@twosigma.com>
Tue, 21 Apr 2020 05:13:50 +0000 (00:13 -0500)
commit2ec9e1704287a7a31c696fd92c577eb8fb88b7bc
tree566539a37b88d0dbc32d67504b68c3d6ba98a641
parent9f3d9e1a0a6c2173b44f019b46134f0da2a00797
gss: intern OID before adding to OID set

gss_add_oid_set_member() should according to RFC2744 add a copy of the OID to
the set; the current implementation just stored a pointer (which may not be
stable). As we have _gss_intern_oid(), call that before adding.
lib/gssapi/mech/gss_add_oid_set_member.c