Setting transform number in esp proposal.
authorClavister OpenSource <opensource@clavister.com>
Mon, 5 Dec 2011 12:44:22 +0000 (13:44 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:31:11 +0000 (17:31 +0100)
iPhone (racoon) fails quick mode when transform number is 0

src/libcharon/encoding/payloads/proposal_substructure.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f758d1f..ca36206
@@ -1235,7 +1235,7 @@ proposal_substructure_t *proposal_substructure_create_from_proposal_v1(
                        break;
                case PROTO_ESP:
                        set_from_proposal_v1_esp(this, proposal, lifetime,
-                                                                        lifebytes, mode, udp, 0);
+                                                                        lifebytes, mode, udp, proposal->get_number(proposal));
                        break;
                default:
                        break;