From: pcarana Date: Fri, 22 Mar 2019 15:50:24 +0000 (-0600) Subject: Implement callback for clients DB cleanup X-Git-Tag: v0.0.2~52^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afa8f10fd4cfaf23d1ff1256a9f0e6ecd96ce0cb;p=thirdparty%2FFORT-validator.git Implement callback for clients DB cleanup --- diff --git a/src/clients.c b/src/clients.c index 0d496f8a..28316e4f 100644 --- a/src/clients.c +++ b/src/clients.c @@ -106,8 +106,14 @@ client_list(struct client **clients) return clients_db.len; } +static void +client_destroy(struct client *client) +{ + /* Didn't allocate something, so do nothing */ +} + void clients_db_destroy(void) { - clientsdb_cleanup(&clients_db, NULL); + clientsdb_cleanup(&clients_db, client_destroy); }