]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: hlua: fix CertCache class comment
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 3 Jun 2024 14:35:53 +0000 (16:35 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 3 Jun 2024 15:00:06 +0000 (17:00 +0200)
CLASS_CERTCACHE is used to declare CertCache global object, not Regex one

This copy-paste typo introduced was in 30fcca18 ("MINOR: ssl/lua:
CertCache.set() allows to update an SSL certificate file")

src/hlua.c

index 33eccfc64595322082fb1e12fc6296871257686c..b28a948c768a2b3fd841a275cd32eb885db37bee 100644 (file)
@@ -13689,7 +13689,7 @@ lua_State *hlua_init_state(int thread_num)
        lua_newtable(L);
        /* Register */
        hlua_class_function(L, "set",         hlua_ckch_set);
-       lua_setglobal(L, CLASS_CERTCACHE); /* Create global object called Regex */
+       lua_setglobal(L, CLASS_CERTCACHE); /* Create global object called CertCache */
 
        /*
         *