From 918e764ef7bc95c0b8df7cfa1c54be0f62428161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Gro=C3=9Fmann?= Date: Tue, 17 Mar 2026 16:02:34 +0100 Subject: [PATCH] fix: adapt ufs_sys_term() calls to new libufs signature Pass &httpd->ufssys to ufs_sys_term() so it can clean up and NULL the handle internally, matching the updated libufs API. --- src/httpconf.c | 2 +- src/httpd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/httpconf.c b/src/httpconf.c index abc78a3..7972a40 100644 --- a/src/httpconf.c +++ b/src/httpconf.c @@ -538,7 +538,7 @@ process_httpd_ufs(lua_State *L, HTTPD *httpd) httpd->ufs = ufs = ufsnew(); if (!ufs) { wtof("HTTPD044W Unable to open UFSD session"); - ufs_sys_term(); + ufs_sys_term(&httpd->ufssys); httpd->ufssys = NULL; goto quit; } diff --git a/src/httpd.c b/src/httpd.c index ec9dffd..2bce719 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -324,7 +324,7 @@ terminate(void) if (httpd->ufssys) { wtof("HTTPD047I Terminating File System"); - ufs_sys_term(); + ufs_sys_term(&httpd->ufssys); httpd->ufssys = NULL; }