Moved proto == RSN validation from pmksa_cache.c into the caller

This commit is contained in:
Jouni Malinen 2009-01-13 20:15:06 +02:00
parent 010dc06853
commit f5a51b58d4
2 changed files with 6 additions and 4 deletions

View file

@ -167,7 +167,7 @@ pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
struct rsn_pmksa_cache_entry *entry, *pos, *prev;
struct os_time now;
if (pmksa->sm->proto != WPA_PROTO_RSN || pmk_len > PMK_LEN)
if (pmk_len > PMK_LEN)
return NULL;
entry = os_zalloc(sizeof(*entry));