From: Alan T. DeKok Date: Sun, 5 Aug 2018 12:51:54 +0000 (-0400) Subject: sign / verify clients that we've copied X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be4dc8e9ee011e7aaf8e8565bbc4a7ddca03a714;p=thirdparty%2Ffreeradius-server.git sign / verify clients that we've copied --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index 77d4d3e1ac6..2cbbd6aba25 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -324,6 +324,9 @@ static RADCLIENT *radclient_clone(TALLOC_CTX *ctx, RADCLIENT const *parent) COPY_FIELD(tls_required); #endif + FR_STRUCT_MEMBER_SIGN(c, secret, talloc_array_length(c->secret)); + FR_STRUCT_SIGN(c); + return c; /* @@ -1256,6 +1259,9 @@ have_client: * Track this packet and return it if necessary. */ if (connection || !client->use_connected) { + FR_STRUCT_MEMBER_VERIFY(client->radclient, secret, talloc_array_length(client->radclient->secret)); + FR_STRUCT_VERIFY(client->radclient); + /* * Add the packet to the tracking table, if it's * not already there. Pending packets will be in