diff options
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index d2a887fc8d9b..6c6a3cba8d50 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c | |||
@@ -240,12 +240,12 @@ get_unique_tuple(struct nf_conntrack_tuple *tuple, | |||
240 | This is only required for source (ie. NAT/masq) mappings. | 240 | This is only required for source (ie. NAT/masq) mappings. |
241 | So far, we don't do local source mappings, so multiple | 241 | So far, we don't do local source mappings, so multiple |
242 | manips not an issue. */ | 242 | manips not an issue. */ |
243 | if (maniptype == IP_NAT_MANIP_SRC) { | 243 | if (maniptype == IP_NAT_MANIP_SRC && |
244 | !(range->flags & IP_NAT_RANGE_PROTO_RANDOM)) { | ||
244 | if (find_appropriate_src(orig_tuple, tuple, range)) { | 245 | if (find_appropriate_src(orig_tuple, tuple, range)) { |
245 | pr_debug("get_unique_tuple: Found current src map\n"); | 246 | pr_debug("get_unique_tuple: Found current src map\n"); |
246 | if (!(range->flags & IP_NAT_RANGE_PROTO_RANDOM)) | 247 | if (!nf_nat_used_tuple(tuple, ct)) |
247 | if (!nf_nat_used_tuple(tuple, ct)) | 248 | return; |
248 | return; | ||
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||