]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sign / verify clients that we've copied
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Aug 2018 12:51:54 +0000 (08:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Aug 2018 12:52:16 +0000 (08:52 -0400)
src/lib/io/master.c

index 77d4d3e1ac643001f17f6efe1f9aa53871d71ef5..2cbbd6aba254b6712863815e605f4d4ffbcbb911 100644 (file)
@@ -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