diff --git a/src/wps/wps_common.c b/src/wps/wps_common.c index 2dff4b254..20e0824e2 100644 --- a/src/wps/wps_common.c +++ b/src/wps/wps_common.c @@ -339,7 +339,7 @@ static struct wpabuf * wps_get_oob_dev_pwd(struct wps_context *wps) { struct wpabuf *data; - data = wpabuf_alloc(9 + WPS_OOB_DEVICE_PASSWORD_ATTR_LEN); + data = wpabuf_alloc(200); if (data == NULL) { wpa_printf(MSG_ERROR, "WPS: Failed to allocate memory for OOB " "device password attribute");