(krb5_copy_data): avoid exposing free-ed memory on error. Found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16937 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -114,6 +114,7 @@ krb5_copy_data(krb5_context context,
|
||||
if(ret) {
|
||||
krb5_clear_error_string (context);
|
||||
free(*outdata);
|
||||
*outdata = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user