buf = os_malloc(CTRL_IFACE_MAX_LEN + 1);
if (!buf)
return;
- res = recvfrom(sock, buf, CTRL_IFACE_MAX_LEN, 0,
+ res = recvfrom(sock, buf, CTRL_IFACE_MAX_LEN + 1, 0,
(struct sockaddr *) &from, &fromlen);
if (res < 0) {
wpa_printf(MSG_ERROR, "recvfrom(ctrl_iface): %s",
buf = os_malloc(CTRL_IFACE_MAX_LEN + 1);
if (!buf)
return;
- res = recvfrom(sock, buf, CTRL_IFACE_MAX_LEN, 0,
+ res = recvfrom(sock, buf, CTRL_IFACE_MAX_LEN + 1, 0,
(struct sockaddr *) &from, &fromlen);
if (res < 0) {
wpa_printf(MSG_ERROR, "recvfrom(ctrl_iface): %s",