aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/smtp_date.rl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ragel/smtp_date.rl')
-rw-r--r--src/ragel/smtp_date.rl21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ragel/smtp_date.rl b/src/ragel/smtp_date.rl
index e873e44de..df21cb3f3 100644
--- a/src/ragel/smtp_date.rl
+++ b/src/ragel/smtp_date.rl
@@ -15,6 +15,9 @@
if (n > 0 && n <= 31) {
tm.tm_mday = n;
}
+ else {
+ fbreak;
+ }
}
}
}
@@ -52,8 +55,14 @@
if (n < 24) {
tm.tm_hour = n;
}
+ else {
+ fbreak;
+ }
}
}
+ else {
+ fbreak;
+ }
}
action Minute_Start {
tmp = p;
@@ -65,8 +74,14 @@
if (n < 60) {
tm.tm_min = n;
}
+ else {
+ fbreak;
+ }
}
}
+ else {
+ fbreak;
+ }
}
action Second_Start {
tmp = p;
@@ -78,8 +93,14 @@
if (n <= 60) { /* Leap second */
tm.tm_sec = n;
}
+ else {
+ fbreak;
+ }
}
}
+ else {
+ fbreak;
+ }
}
action TZ_Sign {
tmp = p;