aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-12-25 22:19:29 +0100
committerGerald Combs <gerald@wireshark.org>2018-12-26 00:56:34 +0000
commit2d9a6c2583ac46f080cb2571fef046e65798a5e9 (patch)
tree6f22ad5039c38c088242d6531295695d3ec1f340 /epan
parent34eb1d37d385fd096ed337db08f410bc1c1876c1 (diff)
maxmind_db: force buffer contain an empty string (CID: 1441961).
Change-Id: Ia290f528befa0c071de9e62ea264fdda0740d6f8 Reviewed-on: https://code.wireshark.org/review/31206 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan')
-rw-r--r--epan/maxmind_db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/maxmind_db.c b/epan/maxmind_db.c
index b9aa3d8d69..6a68f7821e 100644
--- a/epan/maxmind_db.c
+++ b/epan/maxmind_db.c
@@ -220,6 +220,8 @@ read_mmdbr_stdout_worker(gpointer data _U_) {
char ch;
ssize_t status;
+ cur_addr[0] = '\0';
+
g_string_truncate(line_buf, 0);
while((status = mmdbr_pipe_read_one(&ch)) == 1) {