]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set data to NULL if there's no data
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Nov 2017 13:54:55 +0000 (08:54 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Nov 2017 13:54:55 +0000 (08:54 -0500)
mostly for paranoia

src/lib/io/message.c

index 64c56c21e8588cd6fcd87774974934c4e64a123f..f268d743292019266b7b93e0c1a0747a3b461705 100644 (file)
@@ -273,6 +273,8 @@ fr_message_t *fr_message_localize(TALLOC_CTX *ctx, fr_message_t *m, size_t messa
                return NULL;
        }
 
+       l->data = NULL;
+
        if (l->data_size) {
                l->data = talloc_memdup(l, l->data, l->data_size);
                if (!l->data) {