mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix migrateCommand() access of not initialized byte.
This commit is contained in:
parent
fd8efb7c36
commit
727dd43614
@ -5086,12 +5086,15 @@ try_again:
|
||||
socket_error = 1;
|
||||
break;
|
||||
}
|
||||
if (buf0[0] == '-' || (select && buf1[0] == '-') || buf2[0] == '-') {
|
||||
if ((password && buf0[0] == '-') ||
|
||||
(select && buf1[0] == '-') ||
|
||||
buf2[0] == '-')
|
||||
{
|
||||
/* On error assume that last_dbid is no longer valid. */
|
||||
if (!error_from_target) {
|
||||
cs->last_dbid = -1;
|
||||
char *errbuf;
|
||||
if (buf0[0] == '-') errbuf = buf0;
|
||||
if (password && buf0[0] == '-') errbuf = buf0;
|
||||
else if (select && buf1[0] == '-') errbuf = buf1;
|
||||
else errbuf = buf2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user