Commit Diff
Diff:
6f87dc2b46b3cbfb71320f535b34a0bb0734604c
ab3ca977b906a86ca3aae39bea46a4580f3230e2
Commit:
ab3ca977b906a86ca3aae39bea46a4580f3230e2
Tree:
12f9127e3f8362f4be187412b3b107422773bb85
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Thu Jul 23 11:20:34 2020 UTC
Message:
reply_generic() needed a sendraw/sendraw6 too, found last commit.
blob - 5a4f18f0b32c643f6004f10d847bf5b6b7b3ab9c
blob + fec7d08e19ce7e48e1bd3ad11915752b56b83e76
--- forward.c
+++ forward.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: forward.c,v 1.38 2020/07/21 18:19:58 pjp Exp $
+ * $Id: forward.c,v 1.39 2020/07/23 11:20:34 pjp Exp $
*/
#include <sys/types.h>
@@ -911,6 +911,15 @@ forwardthis(ddDB *db, struct cfg *cfg, int so, struct
free_question(q);
goto newqueue;
}
+ switch (from->ss_family) {
+ case AF_INET:
+ rawsend(cfg->raw[0], sreply.replybuf, sretlen, &sforward->from4, sforward->oldsel, cfg);
+ break;
+ case AF_INET6:
+ rawsend6(cfg->raw[1], sreply.replybuf, sretlen, &sforward->from6, sforward->oldsel, cfg);
+ break;
+ }
+
break;
default:
repomaster@centroid.eu