hotplug2: fix "MALLOC FAILURE!" message caused by a missing return code check on...
[openwrt.git] / package / hotplug2 / patches / 100-recv_check.patch
1 --- a/hotplug2.c
2 +++ b/hotplug2.c
3 @@ -300,6 +300,9 @@ int main(int argc, char *argv[]) {
4 worker_ctx = settings->worker->module->init(settings);
5 while (process) {
6 size = recv(settings->netlink_socket, &buffer, sizeof(buffer), 0);
7 + if (size < 0)
8 + continue;
9 +
10 uevent = uevent_deserialize(buffer, size);
11
12 if (uevent == NULL)
This page took 0.040469 seconds and 5 git commands to generate.