diff options
-rw-r--r-- | net/netfilter/ipvs/ip_vs_sync.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index a4dccbc4f1bb..72b3d88d35f4 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net/netfilter/ipvs/ip_vs_sync.c | |||
@@ -381,20 +381,18 @@ static void ip_vs_process_message(const char *buffer, const size_t buflen) | |||
381 | } | 381 | } |
382 | } | 382 | } |
383 | 383 | ||
384 | { | 384 | if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol, |
385 | if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol, | 385 | (union nf_inet_addr *)&s->caddr, |
386 | (union nf_inet_addr *)&s->caddr, | 386 | s->cport, |
387 | s->cport, | 387 | (union nf_inet_addr *)&s->vaddr, |
388 | (union nf_inet_addr *)&s->vaddr, | 388 | s->vport, ¶m)) { |
389 | s->vport, ¶m)) { | 389 | pr_err("ip_vs_conn_fill_param_sync failed"); |
390 | pr_err("ip_vs_conn_fill_param_sync failed"); | 390 | return; |
391 | return; | ||
392 | } | ||
393 | if (!(flags & IP_VS_CONN_F_TEMPLATE)) | ||
394 | cp = ip_vs_conn_in_get(¶m); | ||
395 | else | ||
396 | cp = ip_vs_ct_in_get(¶m); | ||
397 | } | 391 | } |
392 | if (!(flags & IP_VS_CONN_F_TEMPLATE)) | ||
393 | cp = ip_vs_conn_in_get(¶m); | ||
394 | else | ||
395 | cp = ip_vs_ct_in_get(¶m); | ||
398 | if (!cp) { | 396 | if (!cp) { |
399 | /* | 397 | /* |
400 | * Find the appropriate destination for the connection. | 398 | * Find the appropriate destination for the connection. |