summaryrefslogtreecommitdiffstats
path: root/src/multichannel.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 19:39:38 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-03-20 19:39:38 +0100
commit0114456525a8a805d0a53040b7170b7c7d7f7007 (patch)
tree447df64c6b7438ef71577b92b9751c3a1b45dfb5 /src/multichannel.c
parent899785226af55b1c09b2b4d57345da2e07e5f729 (diff)
sync-mode: fix broken dedicated-link change in multichannel layer
This patch fixes a problem that was introduced while adding the multichannel support. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/multichannel.c')
-rw-r--r--src/multichannel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/multichannel.c b/src/multichannel.c
index ab0f04c..de69d5c 100644
--- a/src/multichannel.c
+++ b/src/multichannel.c
@@ -108,3 +108,9 @@ void multichannel_set_current_channel(struct multichannel *m, int i)
{
m->current = m->channel[i];
}
+
+void multichannel_change_current_channel(struct multichannel *m, int i)
+{
+ if (m->current != m->channel[i])
+ m->current = m->channel[i];
+}