only WPS version 0x10 allowed
@@ -2695,6 +2695,11 @@ zeiger->wpsinfo = 1;
while(0 < wpslen)
{
wpsptr = (wpsie_t*)tagptr;
+ if(ntohs(wpsptr->type) == WPS_VERSION)
+ {
+ if(ntohs(wpsptr->len) != 1) return true;
+ if(wpsptr->data[0] != 0x10) return true;
+ }
if((ntohs(wpsptr->type) == WPS_MANUFACTURER) && (ntohs(wpsptr->len) > 0) && (ntohs(wpsptr->len) < (DEVICE_INFO_MAX)))
{
zeiger->manufacturerlen = ntohs(wpsptr->len);
