Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAVE_RES_SETSERVERS leads to syntax error #199

Open
lundman opened this issue Feb 9, 2024 · 0 comments
Open

HAVE_RES_SETSERVERS leads to syntax error #199

lundman opened this issue Feb 9, 2024 · 0 comments

Comments

@lundman
Copy link

lundman commented Feb 9, 2024

--- dkim-dns.c  Fri Feb  9 14:22:49 2024
+++ new-dkim-dns.c      Fri Feb  9 14:22:35 2024
@@ -276,7 +276,7 @@
        struct sockaddr_in6 in6;
 # endif /* AF_INET6 */
        struct state *res;
-       res_sockaddr_union nses[MAXNS];
+       union res_sockaddr_union nses[MAXNS];
 
        assert(srv != NULL);
        assert(nslist != NULL);
@@ -289,7 +289,7 @@
 
        for (ns = strtok_r(tmp, ",", &last);
             ns != NULL && nscount < MAXNS;
-            ns = strtok_r(NULL, ",", &last)
+            ns = strtok_r(NULL, ",", &last))
        {
                memset(&in, '\0', sizeof in);
 # ifdef AF_INET6

The missing union could just be old gcc. But the missing ) in the for-loop is surely never accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant