(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:
Love Hörnquist Åstrand
2006-04-02 02:17:31 +00:00
parent 8796c7d7c8
commit 03f05a7a6e

View File

@@ -1136,6 +1136,7 @@ krb5_make_addrport (krb5_context context,
if (ret) {
krb5_set_error_string(context, "malloc: out of memory");
free (*res);
*res = NULL;
return ret;
}
p = (*res)->address.data;