Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12677

Modified Files:
      Tag: Nov2009
        rel_select.mx 
Log Message:
Protect against NULL redirection.
Found by Coverity.


Index: rel_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_select.mx,v
retrieving revision 1.157.2.4
retrieving revision 1.157.2.5
diff -u -d -r1.157.2.4 -r1.157.2.5
--- rel_select.mx       4 Dec 2009 13:55:07 -0000       1.157.2.4
+++ rel_select.mx       23 Dec 2009 16:00:59 -0000      1.157.2.5
@@ -3481,8 +3481,10 @@
        if (opt_else || else_exp) {
                sql_exp *result = else_exp;
 
-               if (!result)
-                       result = rel_value_exp(sql, rel, opt_else, f, ek);
+               if (!result && !(result = rel_value_exp(sql, rel, opt_else, f, 
ek))) {
+                       list_destroy(conds);
+                       return NULL;
+               }
 
                tpe = exp_subtype(result);
                if (tpe && restype) {


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to