[Swan-dev] [Swan-commit] Changes to ref refs/heads/master

Paul Wouters paul at nohats.ca
Fri Jul 17 18:41:24 EEST 2015


On Fri, 17 Jul 2015, D. Hugh Redelmeier wrote:

> commit 495e70a2fb2a4e93fc037fe27d85efcde59a824b
> Author: D. Hugh Redelmeier <hugh at mimosa.com>
> Date:   Fri Jul 17 11:26:14 2015 -0400
>
>    pluto: tweak dded2a81ba424a0eb0bad3aa44b2ad8f38060b5a; type of ipprotoid is int

-       if (ipprotoid == IPPROTO_ESP || ipprotoid == IPPROTO_AH)
+       if (proto_info != NULL) {

So I had changed it because I think the first line is much more clear.
If you do ESP or AH, get a SPI number.

The NULL check just obfuscates that......

Paul


More information about the Swan-dev mailing list