Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-13 22:03:09 +00:00

AI inspired fixes

This commit is contained in:
bol-van
2026-01-31 18:06:44 +03:00
parent 2490ef6951
commit 055ae067f9

View File

@@ -30,7 +30,7 @@ static int __netlink_enumerate(int fd, unsigned int seq, int type, int af,
if (r < 0) return r;
while (1) {
r = recv(fd, u.buf, sizeof(u.buf), MSG_DONTWAIT);
r = recv(fd, u.buf, sizeof(u.buf), 0);
if (r <= 0) return -1;
for (h = &u.reply; NLMSG_OK(h, (void*)&u.buf[r]); h = NLMSG_NEXT(h)) {
if (h->nlmsg_type == NLMSG_DONE) return 0;