From 8b56203c8884254d4606a5db7623af4e18c37a68 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 1 Aug 2011 12:59:53 +0100 Subject: [PATCH] WIP DNS bugfixes --- Makefile.in | 2 +- dns-bitenc-test.c | 2 +- dns-transp-common.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 0d1ff1a..22fbf49 100644 --- a/Makefile.in +++ b/Makefile.in @@ -38,7 +38,7 @@ CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ -Werror \ -Wpointer-arith -Wformat=2 -Winit-self \ -Wswitch-enum -Wunused-variable -Wbad-function-cast \ -Wno-strict-aliasing -fno-strict-aliasing -ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS) +ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS) $(CMDLINE_CFLAGS) CPPFLAGS:=@CPPFLAGS@ LDFLAGS:=@LDFLAGS@ LDLIBS:=@LIBS@ diff --git a/dns-bitenc-test.c b/dns-bitenc-test.c index a11ecd9..19536ac 100644 --- a/dns-bitenc-test.c +++ b/dns-bitenc-test.c @@ -49,7 +49,7 @@ int main(int argc, const char **argv) { const uint8_t *pr; for (pr=pktbegin; prnpending=0; be->bufstop=buf+1; be->out=buf+buflen; - for (i=mydompathlen-1; i>=0; i++) { + for (i=mydompathlen-1; i>=0; i--) { const char *lab=mydompath[i]; int ll=strlen(lab); if (ll>63) return FAKERCODE_MYDOMAINLABELTOOLONG; -- 2.30.2