From 067fc26b325748b65698dc5b6cf76b93ef6fa5d2 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 6440242..aaa9afc 100644 --- a/lib/TTLS_UI/src/Module.cpp +++ b/lib/TTLS_UI/src/Module.cpp @@ -90,7 +90,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);