gateway: fix copy/paste mistake in setting up the egress rules
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 7 Jan 2013 14:24:59 +0000 (15:24 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 7 Jan 2013 14:43:37 +0000 (15:43 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 2c99600..9bb4028 100644 (file)
@@ -366,7 +366,7 @@ static bool multiGwRulesEgressInterfaces(bool add) {
   bool ok = true;
   unsigned int i = 0;
 
-  for (i = 0; i < olsr_cnf->smart_gw_use_count; i++) {
+  for (i = 0; i < olsr_cnf->smart_gw_egress_interfaces_count; i++) {
     struct interfaceName * ifn = &sgwEgressInterfaceNames[i];
     if (!multiGwRunScript(SCRIPT_MODE_EGRESSIF, add, ifn->name, &ifn->mark)) {
       ok = false;