From bfa65c816ad578e919b238d090b0ce7247176781 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?=
 <francois.dekeersmaeker@uclouvain.be>
Date: Fri, 29 Nov 2024 11:28:50 +0100
Subject: [PATCH] Templates: callback: fixed variable

---
 profile_translator_blocklist/templates/callback.c.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/profile_translator_blocklist/templates/callback.c.j2 b/profile_translator_blocklist/templates/callback.c.j2
index 5801752..c64c7cc 100644
--- a/profile_translator_blocklist/templates/callback.c.j2
+++ b/profile_translator_blocklist/templates/callback.c.j2
@@ -193,6 +193,7 @@ uint32_t callback_{{nfqueue_name}}(int pkt_id, int pkt_len, uint8_t *payload, vo
         {% set is_dns_response.value = True %}
         // Retrieve IP addresses corresponding to the given domain name from the DNS response
         char *domain_name = NULL;
+        char *subdomain = NULL;
         ip_list_t ip_list = ip_list_init();
         {% endif %}
         {% if is_dns_response.value %}
-- 
GitLab