diff options
Diffstat (limited to 'ndp.c')
-rw-r--r-- | ndp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |