]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: Lua: variable already initialized
authorThierry FOURNIER <thierry.fournier@ozon.io>
Sun, 16 Jul 2017 14:35:53 +0000 (16:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Jul 2017 04:41:58 +0000 (06:41 +0200)
The variable strm->hlua is already initilized by the function stream_new().

src/hlua.c

index 71812a6de123d64b39f2016b34dd5077371562a3..35acff79cd352369bc36edb124ef7efb67f25f57 100644 (file)
@@ -2356,7 +2356,6 @@ __LJMP static int hlua_socket_new(lua_State *L)
 
        /* Configure an empty Lua for the stream. */
        socket->s = strm;
-       strm->hlua = NULL;
 
        /* Configure "right" stream interface. this "si" is used to connect
         * and retrieve data from the server. The connection is initialized