[Swan-dev] more code that looks suspicious
Paul Wouters
paul at nohats.ca
Sun Mar 30 00:21:42 EET 2014
On Sat, 22 Mar 2014, D. Hugh Redelmeier wrote:
> In find_host_connection2:
> for (; c != NULL; c = c->hp_next) {
> DBG(DBG_CONTROLMORE,
> DBG_log("found policy = %s (%s)",
> bitnamesof(sa_policy_bit_names,
> c->policy),
> c->name));
> if (NEVER_NEGOTIATE(c->policy))
> continue;
>
> if ((c->policy & policy) == policy)
> break;
>
> if ((policy & POLICY_XAUTH) !=
> (c->policy & POLICY_XAUTH))
> continue;
> }
>
> Look at that last if. If the test is true, the loop continues.
> Otherwise, the loop continues. In other words: it cannot have any
> effect.
for the list, Hugh and I met up, and examined the code, and concluded
the order change was needed.
Paul
More information about the Swan-dev
mailing list