rest: use http error code to report mac is in use

report 409 conflict if mac is in use
master
OpenGnSys Support Team 2025-01-13 12:30:45 +01:00
parent 31d426b018
commit 41c8dec51c
1 changed files with 1 additions and 0 deletions

View File

@ -3032,6 +3032,7 @@ static int og_cmd_post_client_add(struct og_rest_ctx *ctx)
computer.ip, computer_ip, computer_name, room_name, hwaddr);
dbi_result_free(result);
og_dbi_close(dbi);
ctx->http_error = OG_HTTP_409_CONFLICT;
return -1;
}
dbi_result_free(result);