summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ef875b5)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
- sd = malloc(len + sizeof(struct dns_srv_data));
+ sd = calloc(1, len + sizeof(struct dns_srv_data));
- memset(sd, 0, sizeof(struct dns_srv_data));
sd->port = cpu_to_be16(s->port);
memcpy(&sd[1], buffer, len);
host = service_name(s->service);
sd->port = cpu_to_be16(s->port);
memcpy(&sd[1], buffer, len);
host = service_name(s->service);