Re: patch for pgsql password
От | Bruce Momjian |
---|---|
Тема | Re: patch for pgsql password |
Дата | |
Msg-id | 199905270410.AAA19919@candle.pha.pa.us обсуждение исходный текст |
Список | pgsql-hackers |
> > > > Can you send me that patch? Thanks. > > > I have applied the following patch to fix one of our Open Items, by James Thompson: --------------------------------------------------------------------------- *** crypt.c Tue May 25 10:05:43 1999 --- /home/postgresql/crypt.c Tue May 25 09:59:46 1999 *************** *** 148,156 **** * reload */ while (pwd_cache_count--) { ! pfree((void *) pwd_cache[pwd_cache_count]); } ! pfree((void *) pwd_cache); pwd_cache = NULL; pwd_cache_count = 0; } --- 148,156 ---- * reload */ while (pwd_cache_count--) { ! free((void *) pwd_cache[pwd_cache_count]); } ! free((void *) pwd_cache); pwd_cache = NULL; pwd_cache_count = 0; } *************** *** 172,178 **** buffer[result] = '\0'; pwd_cache = (char **) realloc((void *) pwd_cache, sizeof(char*) * (pwd_cache_count + 1)); ! pwd_cache[pwd_cache_count++] = pstrdup(buffer); } FreeFile(pwd_file); --- 172,178 ---- buffer[result] = '\0'; pwd_cache = (char **) realloc((void *) pwd_cache, sizeof(char*) * (pwd_cache_count + 1)); ! pwd_cache[pwd_cache_count++] = strdup(buffer); } FreeFile(pwd_file); -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: