From 1fa3813b92139458854f33436c3e4af2f8ecae6b Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 10 Sep 2024 14:18:51 +0200 Subject: rest: restore change client repository use correct format for mac SQL query to fix 568d709 --- src/rest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rest.c b/src/rest.c index a86a9ec..1894111 100644 --- a/src/rest.c +++ b/src/rest.c @@ -1904,7 +1904,7 @@ static int og_dbi_update_client_repo(struct og_dbi *dbi, const char *mac, result = dbi_conn_queryf(dbi->conn, "UPDATE ordenadores SET idrepositorio=%u " - "WHERE mac='%u'", + "WHERE mac='%s'", repo_id, mac); if (!result) { -- cgit v1.2.3-18-g5258