]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
mod-geoip: fix crash if geodb-key prefix is unknown
authorDaniel Salzman <daniel.salzman@nic.cz>
Thu, 15 Dec 2022 08:35:58 +0000 (09:35 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 15 Dec 2022 08:35:58 +0000 (09:35 +0100)
src/knot/modules/geoip/geodb.h

index 855594b369a2eafa1fda584bbd281e6260c75a44..2ec870111918255fe89200c0402a29d7a25cc1bf 100644 (file)
@@ -40,7 +40,8 @@ typedef enum {
 
 static const knot_lookup_t geodb_key_types[] = {
        { GEODB_KEY_ID, "id" },
-       { GEODB_KEY_TXT, "" }
+       { GEODB_KEY_TXT, "" },
+       { 0, NULL }
 };
 
 typedef struct {