Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/net-mgmt/bsnmp-regex/files/patch-module_bsnmp-regex.c
16462 views
1
--- module/bsnmp-regex.c.orig 2011-10-21 09:05:37 UTC
2
+++ module/bsnmp-regex.c
3
@@ -788,7 +788,7 @@ config_var (char *name, char *value, int line)
4
if (strcmp (name, "expire") == 0 || strcmp (name, "expires") == 0) {
5
6
i = strtol (value, &t2, 10);
7
- if (i <= 0 || *t2)
8
+ if (i < 0 || *t2)
9
emsg ("invalid value for '%s' variable. ignoring: %s", name, value);
10
else
11
option_expires = i * 100;
12
13