eapol/eapol_framework/eapol_common/am/common/eap_am_network_id.cpp
changeset 26 9abfd4f00d37
parent 2 1c7bc153c08e
child 46 c74b3d9f6b9e
--- a/eapol/eapol_framework/eapol_common/am/common/eap_am_network_id.cpp	Thu May 13 22:51:27 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/am/common/eap_am_network_id.cpp	Mon May 24 20:32:47 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: 14 %
+* %version: %
 */
 
 // This is enumeration of EAPOL source code.
@@ -364,7 +364,8 @@
 // 
 EAP_FUNC_EXPORT const u8_t * eap_am_network_id_c::get_source() const
 {
-	if (m_data == 0)
+	if (m_data == 0
+		|| m_data->m_source.get_is_valid_data() == false)
 	{
 		return 0;
 	}
@@ -388,7 +389,8 @@
 // 
 EAP_FUNC_EXPORT const u8_t * eap_am_network_id_c::get_destination() const
 {
-	if (m_data == 0)
+	if (m_data == 0
+		|| m_data->m_destination.get_is_valid_data() == false)
 	{
 		return 0;
 	}
@@ -400,7 +402,8 @@
 // 
 EAP_FUNC_EXPORT u32_t eap_am_network_id_c::get_source_length() const
 {
-	if (m_data == 0)
+	if (m_data == 0
+		|| m_data->m_source.get_is_valid_data() == false)
 	{
 		return 0;
 	}
@@ -412,7 +415,8 @@
 // 
 EAP_FUNC_EXPORT u32_t eap_am_network_id_c::get_destination_length() const
 {
-	if (m_data == 0)
+	if (m_data == 0
+		|| m_data->m_destination.get_is_valid_data() == false)
 	{
 		return 0;
 	}