Fix WPS attribute parser to use correct pointer for Response Type

This commit is contained in:
Jouni Malinen 2010-05-26 17:12:30 +03:00 committed by Jouni Malinen
parent 32b752ef8f
commit 99e437ad52

View file

@ -332,7 +332,7 @@ static int wps_set_attr(struct wps_parse_attr *attr, u16 type,
"length %u", len); "length %u", len);
return -1; return -1;
} }
attr->request_type = pos; attr->response_type = pos;
break; break;
case ATTR_MANUFACTURER: case ATTR_MANUFACTURER:
attr->manufacturer = pos; attr->manufacturer = pos;