diff -r e03a3db4489e -r 9abfd4f00d37 eapol/eapol_framework/eapol_common/am/common/eap_am_network_id.cpp --- 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; }