]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: hlua: Remove dead-code on error path in hlua_socket_new()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 05:43:53 +0000 (07:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Oct 2023 16:11:04 +0000 (18:11 +0200)
Since last fixes about the lua cosocket, the appctx is no longer initialized
in hlua_socket_new(). The code to deal with error at this stage can be
removed.

This patch should fix the issue #2308.

src/hlua.c

index c686f222a848d40bfbf619fbcea9bf7f11de6270..dea42279144d64cc28222e121dbd1f6e67c39233 100644 (file)
@@ -3396,8 +3396,6 @@ __LJMP static int hlua_socket_new(lua_State *L)
        xref_create(&socket->xref, &ctx->xref);
        return 1;
 
- out_fail_appctx:
-       appctx_free_on_early_error(appctx);
  out_fail_conf:
        WILL_LJMP(lua_error(L));
        return 0;