]> git.sur5r.net Git - bacula/bacula/commitdiff
Quickie patch for query buffer problem
authorKern Sibbald <kern@sibbald.com>
Fri, 19 Mar 2004 07:52:21 +0000 (07:52 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 19 Mar 2004 07:52:21 +0000 (07:52 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1141 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/dird/ua_query.c

index 175ff2db244c043d60b3cc4b4961a23dee87c997..62f587a8e4efe64b2763c4fbb75365062d5a2ca4 100644 (file)
@@ -72,6 +72,7 @@ For 1.33 Testing/Documentation:
    Overland Neo2000 (LVD)
 
 For 1.33
+- Fix query buffer clobber ua_query.c
 - On unknown client in restore "client=xxx"
   Could not find Client "Matou": ERR=Query failed: DROP TABLE temp1: 
      ERR=no such table: temp1
index b179d5aba8dca4c04ddd6d7d65fe9bb0e5ac1af2..dcd802531d6ed94386023e9629552464da199e22 100644 (file)
@@ -172,7 +172,8 @@ static POOLMEM *substitute_prompts(UAContext *ua,
    for (i=0; i<9; i++) {
       subst[i] = NULL;
    }
-   new_query = get_pool_memory(PM_MESSAGE);
+   /* ****FIXME**** second and third check_pool ... below are probably broken */
+   new_query = get_memory(2000);
    new_query = check_pool_memory_size(new_query, strlen(query) +100);
    o = new_query;
    olen = 0;