(res_setoptions): Recognize ip6-dotint option. Reset RES_NOIP6DOTINT
authordrepper <drepper>
Wed, 18 Aug 2004 05:28:13 +0000 (05:28 +0000)
committerdrepper <drepper>
Wed, 18 Aug 2004 05:28:13 +0000 (05:28 +0000)
flag in this case..

resolv/res_init.c

index e9392f4..3d3e572 100644 (file)
@@ -502,6 +502,9 @@ res_setoptions(res_state statp, const char *options, const char *source) {
                } else if (!strncmp(cp, "no-ip6-dotint",
                                    sizeof("no-ip6-dotint") - 1)) {
                        statp->options |= RES_NOIP6DOTINT;
+               } else if (!strncmp(cp, "ip6-dotint",
+                                   sizeof("ip6-dotint") - 1)) {
+                       statp->options &= ~RES_NOIP6DOTINT;
                } else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) {
                        statp->options |= RES_ROTATE;
                } else if (!strncmp(cp, "no-check-names",