From: Alan T. DeKok Date: Thu, 9 Nov 2017 13:54:55 +0000 (-0500) Subject: set data to NULL if there's no data X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06e4a78a9c857e232c034c17c290322eb7b987a2;p=thirdparty%2Ffreeradius-server.git set data to NULL if there's no data mostly for paranoia --- diff --git a/src/lib/io/message.c b/src/lib/io/message.c index 64c56c21e85..f268d743292 100644 --- a/src/lib/io/message.c +++ b/src/lib/io/message.c @@ -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) {