summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-11-21 17:38:44 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-11-25 10:33:47 +0100
commitc110bd7d8dc76d167adb5c2a0781f4d09365dfcf (patch)
treee24b209bd7317a6948f022562d4505ed4134ae75 /src/rest.c
parentaebf2281bfd0b90d074fb9ca5d88b2bea29a518d (diff)
rest: do not release dbi in og_get_client_mode_params()
caller function releases this, this results in double free.
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rest.c b/src/rest.c
index ed8c36d..99fc7a6 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -1532,7 +1532,6 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
dbi_conn_error(dbi->conn, &msglog);
syslog(LOG_ERR, "failed to query database (%s:%d) %s\n",
__func__, __LINE__, msglog);
- og_dbi_close(dbi);
return -1;
}
@@ -1541,7 +1540,6 @@ static int og_get_client_mode_params(struct og_dbi *dbi, const char *mac, char *
syslog(LOG_ERR, "failed to query database (%s:%d) %s\n", // TODO
__func__, __LINE__, msglog);
dbi_result_free(result);
- og_dbi_close(dbi);
return -1;
}