Skip to content

Commit

Permalink
fix:Added requirepass judgment on empty and error passwords when star…
Browse files Browse the repository at this point in the history
…ting the s> (OpenAtomFoundation#1645)

Fixes: OpenAtomFoundation#1622

Signed-off-by: hqh-cell <[email protected]>
  • Loading branch information
hqh-cell authored Jun 24, 2023
1 parent 0af79cb commit 4a77ae6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/support/server.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ proc start_server {options {code undefined}} {
puts -nonewline $fp "$directive : "
puts $fp [dict get $config $directive]
} elseif {$directive == "requirepass"} {
puts $fp "$directive :"
if {[dict get $config $directive] eq ":"} {
puts $fp "$directive: "
} else {
puts $fp "$directive: [dict get $config $directive]"
}
} elseif {$directive == "dump_prefix"} {
puts $fp "$directive :"
} else {
Expand Down

0 comments on commit 4a77ae6

Please sign in to comment.