From 210eb259bfb2851c4af8ce7bd6f76ff68ce92661 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Thu, 15 Mar 2018 16:38:38 +0500 Subject: [PATCH] CLEANUP: dns: remove duplicate code in src/dns.c issue was identified by cppcheck [src/dns.c:2037] -> [src/dns.c:2041]: (warning) Variable 'appctx->st2' is reassigned a value before the old one has been used. 'break;' missing? --- src/dns.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/dns.c b/src/dns.c index c5bed59b1b..5fe44d4337 100644 --- a/src/dns.c +++ b/src/dns.c @@ -2027,8 +2027,6 @@ static int cli_io_handler_dump_resolvers_to_buffer(struct appctx *appctx) si->flags |= SI_FL_WAIT_ROOM; return 0; } - - appctx->st2 = STAT_ST_FIN; /* fall through */ default: -- 2.47.3