OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_config.c versions 1.63 and 1.64
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.63 -> 1.64

--- lmtp2nntp_config.c   2002/02/28 15:57:09     1.63
+++ lmtp2nntp_config.c   2002/03/04 15:54:28     1.64
@@ -104,10 +104,6 @@
     return L2_OK;
 }
 
-static void msg_headermatrixbuildup(msg_t *msg);
-static void msg_headermatrixteardwn(msg_t *msg);
-static void headerrewrite(lmtp2nntp_t *ctx);
-
 static var_syntax_t syntax_regex = {
     '\\',         /* escape        */ 
     '$',          /* varinit       */ 
@@ -1250,7 +1246,7 @@
     return rc;
 }
 
-static void msg_headermatrixbuildup(msg_t *msg)
+void msg_headermatrixbuildup(msg_t *msg)
 {
     ex_t ex;
     volatile headerdata_t *hdNew = NULL;
@@ -1313,7 +1309,7 @@
     }
 }
 
-static void msg_headermatrixteardwn(msg_t *msg)
+void msg_headermatrixteardwn(msg_t *msg)
 {
     ex_t ex;
     try {
@@ -1351,7 +1347,7 @@
     }
 }
 
-static void headerrewrite(lmtp2nntp_t *ctx)
+void headerrewrite(lmtp2nntp_t *ctx)
 {
     headerrule_t *hrI;
     headerdata_t *hdI, *hdNew;
@@ -1360,6 +1356,10 @@
     int            ovec[OVECSIZE];
     var_rc_t rc; char *cp; //FIXME what a bad name, it's not the returncode of this function
 
+    /* short circuit in case no headerrules were set up */
+    if (ctx->option_firstheaderrule == NULL)
+        return;
+
     { //FIXME debug code block
         int i;
         headerrule_t *hrD;

CVSTrac 2.0.1