fixed response of QueryRows on rules tables
authorwsourdeau <wsourdeau@71d39326-ef09-db11-b2a4-00e04c779ad1>
Wed, 5 Jan 2011 15:18:31 +0000 (15:18 +0000)
committerwsourdeau <wsourdeau@71d39326-ef09-db11-b2a4-00e04c779ad1>
Wed, 5 Jan 2011 15:18:31 +0000 (15:18 +0000)
git-svn-id: https://svn.openchange.org/openchange@2479 71d39326-ef09-db11-b2a4-00e04c779ad1

branches/sogo/mapiproxy/servers/default/emsmdb/oxctabl.c

index 57e167e2ec057d36c4f99c739d3f33d02d1a06af..d94917a3ebaa0b6f4e6b2eaac15ca39e36a67c18 100644 (file)
@@ -342,7 +342,7 @@ _PUBLIC_ enum MAPISTATUS EcDoRpc_RopQueryRows(TALLOC_CTX *mem_ctx,
        }
        if (table->ulType == EMSMDBP_TABLE_RULE_TYPE) {
                DEBUG(5, ("  query on rules table are all faked right now\n"));
-               goto end;
+               goto finish;
        }
 
        if ((request.RowCount + table->numerator) > table->denominator) {
@@ -488,7 +488,9 @@ _PUBLIC_ enum MAPISTATUS EcDoRpc_RopQueryRows(TALLOC_CTX *mem_ctx,
        }
 
 finish:
-       talloc_free(table_filter);
+       if (table_filter) {
+               talloc_free(table_filter);
+       }
 
        /* QueryRows reply parameters */
        if (count) {