From 8eaecdaa5984a496bac56bdf60a6f2f9b2a28a07 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 16 Jan 2022 17:04:04 -0500 Subject: [PATCH] lib/krb5: srv_find_realm do not leak 'r' if unreachable Change-Id: I6e16676c9cb820d6a25820523608cb9854fa2ce4 --- lib/krb5/krbhst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 3037ca5d5..53b178050 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -113,6 +113,7 @@ srv_find_realm(krb5_context context, krb5_krbhst_info ***res, int *count, if (num_srv == 0) { _krb5_debug(context, 0, "DNS SRV RR lookup domain nodata: %s", domain); + rk_dns_free_data(r); return KRB5_KDC_UNREACH; } -- 2.11.4.GIT