(check_KRB5SignedPath): free KRB5SignedPath on successful completion
too, not just the error cases. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18827 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -290,13 +290,14 @@ check_KRB5SignedPath(krb5_context context,
|
||||
}
|
||||
|
||||
ret = copy_KRB5SignedPathPrincipals(*delegated, sp.delegated);
|
||||
free_KRB5SignedPath(&sp);
|
||||
if (ret) {
|
||||
free_KRB5SignedPath(&sp);
|
||||
free(*delegated);
|
||||
*delegated = NULL;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
free_KRB5SignedPath(&sp);
|
||||
|
||||
} else {
|
||||
if (require_signedpath)
|
||||
|
Reference in New Issue
Block a user