mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-03 07:54:28 +01:00
questd: fix questd crash
This commit is contained in:
parent
4f37cdb979
commit
c7e55ef36c
2 changed files with 4 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ int igmp_rpc(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
void *object, *array;
|
||||
|
||||
blob_buf_init(&bb, 0);
|
||||
if (!(in = fopen("/tmp/igmp_snooping", "r")))
|
||||
if (!(in = fopen("/proc/net/igmp_snooping", "r")))
|
||||
return 1;
|
||||
array = blobmsg_open_array(&bb, "tables");
|
||||
|
||||
|
|
|
|||
|
|
@ -329,11 +329,11 @@ match_client_to_network(Network *lan, char *hostaddr, bool *local, char *net, ch
|
|||
|
||||
if((snet.s_addr ^ rslt.s_addr) == 0) {
|
||||
*local = true;
|
||||
snprintf(*net, 32, lan->name);
|
||||
snprintf(net, 32, lan->name);
|
||||
if (lan->type && !strcmp(lan->type, "bridge"))
|
||||
snprintf(*dev, 32, "br-%s", lan->name);
|
||||
snprintf(dev, 32, "br-%s", lan->name);
|
||||
else
|
||||
snprintf(*dev, 32, lan->ifname);
|
||||
snprintf(dev, 32, lan->ifname);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue