diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-17 18:03:52 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-17 18:03:52 +0100 |
commit | d581381870486687586dea4ebf4b7065ae408cd0 (patch) | |
tree | be948723af8f978bf38a03a61a6437bbd1348bd2 /src/sync-ftfw.c | |
parent | b1d00262f999a597fa24af3298195db9cf52b790 (diff) | |
download | conntrack-tools-d581381870486687586dea4ebf4b7065ae408cd0.tar.gz conntrack-tools-d581381870486687586dea4ebf4b7065ae408cd0.zip |
network: do not re-set the message type in nethdr_set* functions
The network headers already contain the message type set. It is not
necessary to set it up again.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r-- | src/sync-ftfw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c index a287ecd..0d49756 100644 --- a/src/sync-ftfw.c +++ b/src/sync-ftfw.c @@ -463,11 +463,8 @@ static int tx_queue_xmit(struct queue_node *n, const void *data) if (IS_ACK(net) || IS_NACK(net) || IS_RESYNC(net)) { nethdr_set_ack(net); - } else if (IS_ALIVE(net)) { - nethdr_set_ctl(net); } else { - STATE_SYNC(error).msg_snd_malformed++; - return 0; + nethdr_set_ctl(net); } HDR_HOST2NETWORK(net); |