Skip to content

Commit

Permalink
Fix speculativeAuthenticate panic on empty database (#4178)
Browse files Browse the repository at this point in the history
Closes #4100.
  • Loading branch information
chilagrow committed Mar 13, 2024
1 parent ea9c5bd commit 8483f04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/handler/cmd_query.go
Expand Up @@ -46,7 +46,9 @@ func (h *Handler) CmdQuery(ctx context.Context, query *wire.OpQuery) (*wire.OpRe

dbName, err := common.GetRequiredParam[string](document, "db")
if err != nil {
return nil, lazyerrors.Error(err)
reply.SetDocument(replyDoc)

return reply, nil
}

doc, err := h.saslStart(ctx, dbName, document)
Expand Down

0 comments on commit 8483f04

Please sign in to comment.