From: Kern Sibbald Date: Fri, 19 Mar 2004 07:52:21 +0000 (+0000) Subject: Quickie patch for query buffer problem X-Git-Tag: Release-1.34.0~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f05c9bea92c12fd47d87004a3817de56726e85d4;p=bacula%2Fbacula Quickie patch for query buffer problem git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1141 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kernstodo b/bacula/kernstodo index 175ff2db24..62f587a8e4 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -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 diff --git a/bacula/src/dird/ua_query.c b/bacula/src/dird/ua_query.c index b179d5aba8..dcd802531d 100644 --- a/bacula/src/dird/ua_query.c +++ b/bacula/src/dird/ua_query.c @@ -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;