changeset 296:05b604c99e06 stable-6-0-43

allow broken SRS0+ rather than the correct SRS0= tag
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 15:08:53 -0700
parents d239e34df3c5
children cc1771807365
files src/dnsbl.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dnsbl.cpp	Fri Jul 18 15:05:04 2014 -0700
+++ b/src/dnsbl.cpp	Fri Jul 18 15:08:53 2014 -0700
@@ -1771,7 +1771,7 @@
     extern char *optarg;
 
     // setup srs coding detection
-    if (regcomp(&srs_pattern, "^srs(0|1)(=|\+)([^=]+)=([^=]+)=([^=]+)=([^@]+)@", REG_ICASE | REG_EXTENDED)) {
+    if (regcomp(&srs_pattern, "^srs(0|1)(=|\\+)([^=]+)=([^=]+)=([^=]+)=([^@]+)@", REG_ICASE | REG_EXTENDED)) {
         printf("cannot compile regex pattern to find srs coding in mail addresses\n");
         exit(3);
     }