I tested it and it switches connections as needed.<br>A minor modification in the patch:<br><br>--- connections.c.orig 2008-12-30 18:42:26.000000000 +0530<br>+++ connections.c 2009-01-02 12:51:31.000000000 +0530<br>
@@ -3785,7 +3785,7 @@ refine_host_connection(const struct stat<br> if (dpsk == NULL)<br> continue; /* no secret */<br><br>- if (psk != dpsk)<br>+ if (!aggrmode && psk != dpsk)<br>
if (psk->len != dpsk->len<br> || memcmp(psk->ptr, dpsk->ptr, psk->len) != 0)<br> continue; /* different secret */<br><br>Regards,<br>
-hiren<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>
> Should I bypass the check for Aggressive mode?<br>
><br>
> --- connections.c.orig 2008-12-30 18:42:26.000000000 +0530<br>
> +++ connections.c 2008-12-30 21:28:10.000000000 +0530<br>
> @@ -3785,7 +3785,7 @@ refine_host_connection(const struct stat<br>
> if (dpsk == NULL)<br>
> continue; /* no secret */<br>
><br>
> - if (psk != dpsk)<br>
> + if (!(d->policy & POLICY_AGGRESSIVE) && psk != dpsk)<br>
> if (psk->len != dpsk->len<br>
> || memcmp(psk->ptr, dpsk->ptr, psk->len) != 0)<br>
> continue; /* different secret */<br>
<br>
</div></div>That looks like a proper fix. Did you do any testing?<br>
<font color="#888888"><br>
Paul<br>
</font></blockquote></div><br>