summaryrefslogtreecommitdiffstats
path: root/net/ipv4/netfilter/ip_nat_helper_pptp.c
diff options
context:
space:
mode:
authorPatrick McHardy2006-09-20 21:10:52 +0200
committerDavid S. Miller2006-09-23 00:20:18 +0200
commit62fbe9c82b20197a4f9c54f7add5d368418ba277 (patch)
tree8dac2b3d2e0fe0bced40b4c12656070023eb4ac2 /net/ipv4/netfilter/ip_nat_helper_pptp.c
parent[NETFILTER]: PPTP conntrack: check call ID before changing state (diff)
downloadkernel-qcow2-linux-62fbe9c82b20197a4f9c54f7add5d368418ba277.tar.gz
kernel-qcow2-linux-62fbe9c82b20197a4f9c54f7add5d368418ba277.tar.xz
kernel-qcow2-linux-62fbe9c82b20197a4f9c54f7add5d368418ba277.zip
[NETFILTER]: PPTP conntrack: fix PPTP_IN_CALL message types
Fix incorrectly used message types and call IDs: - PPTP_IN_CALL_REQUEST (PAC->PNS) contains a PptpInCallRequest (icreq) message and the PAC call ID - PPTP_IN_CALL_REPLY (PNS->PAC) contains a PptpInCallReply (icack) message and the PNS call ID Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ip_nat_helper_pptp.c')
-rw-r--r--net/ipv4/netfilter/ip_nat_helper_pptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_nat_helper_pptp.c b/net/ipv4/netfilter/ip_nat_helper_pptp.c
index 84f6bd09fcd4..2ff578807123 100644
--- a/net/ipv4/netfilter/ip_nat_helper_pptp.c
+++ b/net/ipv4/netfilter/ip_nat_helper_pptp.c
@@ -172,7 +172,7 @@ pptp_outbound_pkt(struct sk_buff **pskb,
ct_pptp_info->pns_call_id = new_callid;
break;
case PPTP_IN_CALL_REPLY:
- cid_off = offsetof(union pptp_ctrl_union, icreq.callID);
+ cid_off = offsetof(union pptp_ctrl_union, icack.callID);
break;
case PPTP_CALL_CLEAR_REQUEST:
cid_off = offsetof(union pptp_ctrl_union, clrreq.callID);