From 7513632d42a818741f24b53d75822d19f34c5f2b Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Thu, 29 Sep 2022 12:21:12 +0200 Subject: [PATCH] Fixed small bug in converting policy to binary. And updated reference to stubby --- src/context.c | 5 +++-- stubby | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/context.c b/src/context.c index 5f41300c..78878927 100644 --- a/src/context.c +++ b/src/context.c @@ -3150,14 +3150,15 @@ fprintf(stderr, "update_proxy_policy_opts: policy_count %d\n", policy_count); size= sizeof(buf)-off; proxy_policy2opt(policy, 1 /*do_ipv6*/, buf.buf+off, &size); - off= size; + off += size; } if (has_v4) { size= sizeof(buf)-off; proxy_policy2opt(policy, 0 /*!do_ipv6*/, buf.buf+off, &size); - off= size; + off += size; } + fprintf(stderr, "update_proxy_policy_opts: off %lu\n", off); } opt= NULL; diff --git a/stubby b/stubby index 3d563285..2eab450c 160000 --- a/stubby +++ b/stubby @@ -1 +1 @@ -Subproject commit 3d5632852826736b14a5b86b6f19117f7bce97da +Subproject commit 2eab450c458e87f07488a011b0e9c64a4fa9b82c