]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: dns: remove duplicate code in src/dns.c
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 15 Mar 2018 11:38:38 +0000 (16:38 +0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Mar 2018 11:09:16 +0000 (12:09 +0100)
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

index c5bed59b1b034d638acd18455cefa585eebe5d82..5fe44d43377b76abc73f20f0d6fae48380a3647d 100644 (file)
--- 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: