summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd/config.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-05-08 06:26:06 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-05-08 06:26:06 +0000
commitf3b8b5ae9319904a013be4690a5cdc94608a6868 (patch)
tree373727131caf61929c22aa817164ccb9cd4235e4 /usr.sbin/rtadvd/config.c
parentd5d9e5458e47f9644c0e6871262d60d3635456fb (diff)
Fix a comparison when building a packet with DNS search lists.
From Stephane A. Sezer ok bluhm@
Diffstat (limited to 'usr.sbin/rtadvd/config.c')
-rw-r--r--usr.sbin/rtadvd/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c
index c2a378d0012..08f1861652d 100644
--- a/usr.sbin/rtadvd/config.c
+++ b/usr.sbin/rtadvd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.34 2013/05/08 06:24:44 brad Exp $ */
+/* $OpenBSD: config.c,v 1.35 2013/05/08 06:26:05 brad Exp $ */
/* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */
/*
@@ -863,7 +863,7 @@ make_packet(struct rainfo *rainfo)
TAILQ_FOREACH(dnsd, &dsl->dnssldoms, entry) {
curlabel_begin = dnsd->domain;
while ((curlabel_end = strchr(curlabel_begin, '.')) &&
- (curlabel_end - curlabel_begin) > 1)
+ (curlabel_end - curlabel_begin) > 0)
{
size_t curlabel_size;