check the ssid length

This commit is contained in:
Mathieu Lacage
2007-10-23 14:00:53 +02:00
parent 6f97972582
commit c570beefbd

View File

@@ -126,6 +126,7 @@ Ssid::Deserialize (Buffer::Iterator i)
uint8_t elementId = i.ReadU8 ();
NS_ASSERT (elementId == ELEMENT_ID);
m_length = i.ReadU8 ();
NS_ASSERT (m_length <= 32);
i.Read (m_ssid, m_length);
return i;
}