Fix mapping of IKEv1 encapsulation mode

This commit is contained in:
Martin Willi 2012-01-24 13:31:37 +01:00
parent 7fd7ffc649
commit 5ed4b727d0
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ METHOD(proposal_substructure_t, get_encap_mode, ipsec_mode_t,
case IKEV1_ENCAP_TRANSPORT:
return MODE_TRANSPORT;
case IKEV1_ENCAP_TUNNEL:
return MODE_TRANSPORT;
return MODE_TUNNEL;
case IKEV1_ENCAP_UDP_TRANSPORT:
*udp = TRUE;
return MODE_TRANSPORT;