Update of /cvsroot/monetdb/sql/src/backends/monet5/merovingian
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv474

Modified Files:
      Tag: Aug2009
        monetdb.c 
Log Message:
check argument of forward property, so we can't insert bogus here

U monetdb.c
Index: monetdb.c
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/monetdb.c,v
retrieving revision 1.28.2.1
retrieving revision 1.28.2.2
diff -u -d -r1.28.2.1 -r1.28.2.2
--- monetdb.c   4 Sep 2009 12:04:04 -0000       1.28.2.1
+++ monetdb.c   4 Sep 2009 12:12:54 -0000       1.28.2.2
@@ -1077,6 +1077,17 @@
                                continue;
                        }
 
+                       if (strcmp(kv->key, "forward") == 0 && kv->val != NULL) 
{
+                               if (strcmp(kv->val, "proxy") != 0 &&
+                                               strcmp(kv->val, "redirect") != 
0)
+                               {
+                                       fprintf(stderr, "%s: expected 'proxy' 
or 'redirect' for "
+                                                       "property 'forward', 
got: %s\n", argv[0], kv->val);
+                                       state |= 1;
+                                       continue;
+                               }
+                       }
+
                        writeProps(props, stats->path);
                        freeConfFile(props);
                }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to