(krb5_make_addrport): clear return value on error, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16955 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1136,6 +1136,7 @@ krb5_make_addrport (krb5_context context,
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
krb5_set_error_string(context, "malloc: out of memory");
|
krb5_set_error_string(context, "malloc: out of memory");
|
||||||
free (*res);
|
free (*res);
|
||||||
|
*res = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
p = (*res)->address.data;
|
p = (*res)->address.data;
|
||||||
|
Reference in New Issue
Block a user