diff options
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/input.c | 4 | ||||
-rw-r--r-- | net/sctp/ipv6.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 87feee166da9..1ff47b18724a 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -513,7 +513,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info) | |||
513 | struct sctp_association *asoc = NULL; | 513 | struct sctp_association *asoc = NULL; |
514 | struct sctp_transport *transport; | 514 | struct sctp_transport *transport; |
515 | struct inet_sock *inet; | 515 | struct inet_sock *inet; |
516 | char *saveip, *savesctp; | 516 | sk_buff_data_t saveip, savesctp; |
517 | int err; | 517 | int err; |
518 | 518 | ||
519 | if (skb->len < ihlen + 8) { | 519 | if (skb->len < ihlen + 8) { |
@@ -527,7 +527,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info) | |||
527 | skb_reset_network_header(skb); | 527 | skb_reset_network_header(skb); |
528 | skb_set_transport_header(skb, ihlen); | 528 | skb_set_transport_header(skb, ihlen); |
529 | sk = sctp_err_lookup(AF_INET, skb, sctp_hdr(skb), &asoc, &transport); | 529 | sk = sctp_err_lookup(AF_INET, skb, sctp_hdr(skb), &asoc, &transport); |
530 | /* Put back, the original pointers. */ | 530 | /* Put back, the original values. */ |
531 | skb->network_header = saveip; | 531 | skb->network_header = saveip; |
532 | skb->transport_header = savesctp; | 532 | skb->transport_header = savesctp; |
533 | if (!sk) { | 533 | if (!sk) { |
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index afcb0093c290..5b0cdda4b449 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -126,7 +126,7 @@ SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
126 | struct sctp_association *asoc; | 126 | struct sctp_association *asoc; |
127 | struct sctp_transport *transport; | 127 | struct sctp_transport *transport; |
128 | struct ipv6_pinfo *np; | 128 | struct ipv6_pinfo *np; |
129 | char *saveip, *savesctp; | 129 | sk_buff_data_t saveip, savesctp; |
130 | int err; | 130 | int err; |
131 | 131 | ||
132 | idev = in6_dev_get(skb->dev); | 132 | idev = in6_dev_get(skb->dev); |