Store param value length. Fix off-by-one.
[apps/pfixtools.git] / postlicyd / rbl.c
index 748d40a..1bae4d8 100644 (file)
@@ -305,8 +305,10 @@ static bool rbl_filter_constructor(filter_t *filter)
                     array_add(data->weights, weight);
                     break;
                 }
-                current = p + 1;
-                p = m_strchrnul(current, ':');
+                if (i != 2) {
+                    current = p + 1;
+                    p = m_strchrnul(current, ':');
+                }
             }
           } break;