(add_builtin): ok for __gss_mech_initialize() to return NULL

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20625 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-05-08 13:55:03 +00:00
parent 297d5a54b0
commit 3a4c55c9b8

View File

@@ -173,6 +173,10 @@ add_builtin(gssapi_mech_interface mech)
struct _gss_mech_switch *m;
OM_uint32 minor_status;
/* not registering any mech is ok */
if (mech == NULL)
return 0;
m = malloc(sizeof(*m));
if (m == NULL)
return 1;