1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

web: fix out-of-bounds access if compiled with -DWITH_API=OFF (thanks Sonja)

This commit is contained in:
Steffen Vogel 2019-04-14 19:26:41 +02:00
parent 002e473937
commit ed56993302

View file

@ -259,7 +259,7 @@ void Web::start()
logger->info("Starting sub-system: htdocs={}", htdocs.c_str());
/* update web root of mount point */
mounts[1].origin = htdocs.c_str();
mounts[ARRAY_LEN(mounts)-1].origin = htdocs.c_str();
context = lws_create_context(&ctx_info);
if (context == nullptr)