]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
copy original message
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Nov 2017 17:58:59 +0000 (12:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Nov 2017 17:58:59 +0000 (12:58 -0500)
src/lib/io/message.c

index f268d743292019266b7b93e0c1a0747a3b461705..c2c0f5281b21422f74a317063387f19595a4fe88 100644 (file)
@@ -276,7 +276,7 @@ fr_message_t *fr_message_localize(TALLOC_CTX *ctx, fr_message_t *m, size_t messa
        l->data = NULL;
 
        if (l->data_size) {
-               l->data = talloc_memdup(l, l->data, l->data_size);
+               l->data = talloc_memdup(l, m->data, l->data_size);
                if (!l->data) {
                        talloc_free(l);
                        goto nomem;