free name on error, cid#69

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24126 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:04:09 +00:00
parent d97b2360b9
commit 7a8202a4d9

View File

@@ -63,8 +63,10 @@ OM_uint32 _gss_ntlm_import_name
/* find "domain" part of the name and uppercase it */
p = strchr(name, '@');
if (p == NULL)
if (p == NULL) {
free(name);
return GSS_S_BAD_NAME;
}
p[0] = '\0';
p++;
p2 = strchr(p, '.');