aboutgitcodebugslistschat
path: root/ndp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ndp.c')
-rw-r--r--ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndp.c b/ndp.c
index 3a766ec..c04df6a 100644
--- a/ndp.c
+++ b/ndp.c
@@ -140,7 +140,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len)
for (n = 0; *c->dns_search[n].n; n++)
dns_s_len += strlen(c->dns_search[n].n) + 2;
- if (len) {
+ if (dns_s_len) {
*p++ = 31; /* DNSSL */
*p++ = (len + 8 - 1) / 8 + 1; /* length */
p += 2; /* reserved */