|
@@ -260,8 +260,9 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
|
|
|
buf_len = strlen(buf);
|
|
buf_len = strlen(buf);
|
|
|
|
|
|
|
|
ct = nf_ct_get(skb, &ctinfo);
|
|
ct = nf_ct_get(skb, &ctinfo);
|
|
|
- if (ct && nfct_nat(ct)) {
|
|
|
|
|
|
|
+ if (ct && (ct->status & IPS_NAT_MASK)) {
|
|
|
bool mangled;
|
|
bool mangled;
|
|
|
|
|
+
|
|
|
/* If mangling fails this function will return 0
|
|
/* If mangling fails this function will return 0
|
|
|
* which will cause the packet to be dropped.
|
|
* which will cause the packet to be dropped.
|
|
|
* Mangling can only fail under memory pressure,
|
|
* Mangling can only fail under memory pressure,
|