aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2019-01-10 00:53:23 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2019-01-10 01:23:08 +0100
commit5cf53b26727a57d1f2a03a09de38148b582dc717 (patch)
tree0f799334c133879214dbd5fcf59bf24a03212520
parentOnly build libm with -fno-math-errno (bug 24024) (diff)
downloadglibc-5cf53b26727a57d1f2a03a09de38148b582dc717.tar.gz
glibc-5cf53b26727a57d1f2a03a09de38148b582dc717.tar.bz2
glibc-5cf53b26727a57d1f2a03a09de38148b582dc717.zip
resolv: AAAA (28) is valid, no fallthrough to default
The test resolv/tst-resolv-ai_idn-nolibidn2 kept failing, with the puzzling output "invalid qtype: 28". Puzzling since 28 is an AAAA record. Turns out the switch statement is missing a break, so the "T_AAAA" case continues with "default". Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--resolv/tst-resolv-ai_idn-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resolv/tst-resolv-ai_idn-common.c b/resolv/tst-resolv-ai_idn-common.c
index e7c4030e1c..f69e3508e5 100644
--- a/resolv/tst-resolv-ai_idn-common.c
+++ b/resolv/tst-resolv-ai_idn-common.c
@@ -241,6 +241,7 @@ response (const struct resolv_response_context *ctx,
qname[0] };
resolv_response_add_data (b, &addr, sizeof (addr));
}
+ break;
default:
FAIL_EXIT1 ("invalid qtype: %d", qtype);
}