]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: peers: Remove unreachable code in peer_session_create()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 May 2022 06:02:37 +0000 (08:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 May 2022 07:04:53 +0000 (09:04 +0200)
An error label is now unreachable in peer_session_create().

This patch should fix the issue #1704.

src/peers.c

index 6f71ded9f1c2b1e45616a9a596033ac6c1e284eb..e37b5b740ffcc9b734e139f411fd14e467b5824c 100644 (file)
@@ -3219,9 +3219,6 @@ static struct appctx *peer_session_create(struct peers *peers, struct peer *peer
        appctx_wakeup(appctx);
        return appctx;
 
-       /* Error unrolling */
- out_free_appctx:
-       appctx_free_on_early_error(appctx);
  out_close:
        return NULL;
 }