From 9ce58c3e1500b7a2ed61cf62002a05345371732c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 10 Jul 2017 10:48:10 +0200 Subject: [PATCH] Issue with NULL-initialized new profile configuration fixed --- lib/TTLS_UI/src/Module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/TTLS_UI/src/Module.cpp b/lib/TTLS_UI/src/Module.cpp index 58aa242..eb8a754 100644 --- a/lib/TTLS_UI/src/Module.cpp +++ b/lib/TTLS_UI/src/Module.cpp @@ -84,7 +84,8 @@ void eap::peer_ttls_ui::config_blob2xml( // Unpack configuration. config_connection cfg(*this); - unpack(cfg, pConnectionData, dwConnectionDataSize); + if (dwConnectionDataSize) + unpack(cfg, pConnectionData, dwConnectionDataSize); // Save configuration to XML. cfg.save(pDoc, pConfigRoot);