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:
@@ -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, '.');
|
||||
|
Reference in New Issue
Block a user