From: Marek VavruĊĦa Date: Tue, 21 Jul 2015 14:20:14 +0000 (+0200) Subject: lib/zonecut: check if the label hopping failed X-Git-Tag: v1.0.0-beta1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18e97d8f466b0025dfe6aa90ed1f35e43f772ddf;p=thirdparty%2Fknot-resolver.git lib/zonecut: check if the label hopping failed --- diff --git a/lib/zonecut.c b/lib/zonecut.c index 55d20c810..437192385 100644 --- a/lib/zonecut.c +++ b/lib/zonecut.c @@ -327,7 +327,7 @@ int kr_zonecut_find_cached(struct kr_context *ctx, struct kr_zonecut *cut, const } /* Start at QNAME parent. */ - while (txn) { + while (txn && name) { if (fetch_ns(ctx, cut, name, txn, timestamp) == 0) { update_cut_name(cut, name); return kr_ok();