projects
/
oweals
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubus: add ubus fetch call
[oweals/mdnsd.git]
/
dns.c
diff --git
a/dns.c
b/dns.c
index c5323e5e93c449af5ff38913dc8ec5c6a6a18687..89cd4ce5a76fc4ebd736784cf6d6fcbe4180bf0d 100644
(file)
--- a/
dns.c
+++ b/
dns.c
@@
-39,6
+39,7
@@
#include "interface.h"
static char name_buffer[MAX_NAME_LEN + 1];
#include "interface.h"
static char name_buffer[MAX_NAME_LEN + 1];
+static char dns_buffer[MAX_NAME_LEN];
static struct blob_buf ans_buf;
const char*
static struct blob_buf ans_buf;
const char*
@@
-76,7
+77,7
@@
dns_send_question(struct interface *iface, const char *question, int type, int u
.iov_len = sizeof(h),
},
{
.iov_len = sizeof(h),
},
{
- .iov_base =
name
_buffer,
+ .iov_base =
dns
_buffer,
},
{
.iov_base = &q,
},
{
.iov_base = &q,
@@
-89,7
+90,7
@@
dns_send_question(struct interface *iface, const char *question, int type, int u
q.class = cpu_to_be16(((unicast) ? (CLASS_UNICAST) : (0)) | 1);
q.type = cpu_to_be16(type);
q.class = cpu_to_be16(((unicast) ? (CLASS_UNICAST) : (0)) | 1);
q.type = cpu_to_be16(type);
- len = dn_comp(question, (void *)
name_buffer, sizeof(name
_buffer), NULL, NULL);
+ len = dn_comp(question, (void *)
dns_buffer, sizeof(dns
_buffer), NULL, NULL);
if (len < 1)
return;
if (len < 1)
return;