]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/zonecut: check if the label hopping failed
authorMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 21 Jul 2015 14:20:14 +0000 (16:20 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Tue, 21 Jul 2015 14:20:14 +0000 (16:20 +0200)
lib/zonecut.c

index 55d20c810432f66babcf336c988286a6f112fceb..437192385dfe0b013b8291b4a7400cb2274755a8 100644 (file)
@@ -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();