Skip to content

Commit 2200313

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
Pablo Neira Ayuso says: ==================== Netfilter fixes for net The following patchset contains Netfilter fixes for net: 1) Uninitialized when used in __nf_conntrack_update(), from Nathan Chancellor. 2) Comparison of unsigned expression in nf_confirm_cthelper(). 3) Remove 'const' type qualifier with no effect. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 2b86cb8 + 4946ea5 commit 2200313

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/linux/netfilter/nf_conntrack_pptp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <net/netfilter/nf_conntrack_expect.h>
1111
#include <uapi/linux/netfilter/nf_conntrack_tuple_common.h>
1212

13-
extern const char *const pptp_msg_name(u_int16_t msg);
13+
const char *pptp_msg_name(u_int16_t msg);
1414

1515
/* state of the control session */
1616
enum pptp_ctrlsess_state {

net/netfilter/nf_conntrack_core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,11 +2017,11 @@ static void nf_conntrack_attach(struct sk_buff *nskb, const struct sk_buff *skb)
20172017
}
20182018

20192019
static int __nf_conntrack_update(struct net *net, struct sk_buff *skb,
2020-
struct nf_conn *ct)
2020+
struct nf_conn *ct,
2021+
enum ip_conntrack_info ctinfo)
20212022
{
20222023
struct nf_conntrack_tuple_hash *h;
20232024
struct nf_conntrack_tuple tuple;
2024-
enum ip_conntrack_info ctinfo;
20252025
struct nf_nat_hook *nat_hook;
20262026
unsigned int status;
20272027
int dataoff;
@@ -2092,7 +2092,7 @@ static int nf_confirm_cthelper(struct sk_buff *skb, struct nf_conn *ct,
20922092
{
20932093
const struct nf_conntrack_helper *helper;
20942094
const struct nf_conn_help *help;
2095-
unsigned int protoff;
2095+
int protoff;
20962096

20972097
help = nfct_help(ct);
20982098
if (!help)
@@ -2146,7 +2146,7 @@ static int nf_conntrack_update(struct net *net, struct sk_buff *skb)
21462146
return 0;
21472147

21482148
if (!nf_ct_is_confirmed(ct)) {
2149-
err = __nf_conntrack_update(net, skb, ct);
2149+
err = __nf_conntrack_update(net, skb, ct, ctinfo);
21502150
if (err < 0)
21512151
return err;
21522152
}

net/netfilter/nf_conntrack_pptp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static const char *const pptp_msg_name_array[PPTP_MSG_MAX + 1] = {
9191
[PPTP_SET_LINK_INFO] = "SET_LINK_INFO"
9292
};
9393

94-
const char *const pptp_msg_name(u_int16_t msg)
94+
const char *pptp_msg_name(u_int16_t msg)
9595
{
9696
if (msg > PPTP_MSG_MAX)
9797
return pptp_msg_name_array[0];

0 commit comments

Comments
 (0)