Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
antepusic committed Jun 18, 2024
1 parent 6d2a046 commit 55de52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mgclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static mg_map *build_hello_extra(const char *user_agent, const char *scheme,
// not have such requirements:
// https://neo4j.com/docs/bolt/current/bolt/message/#messages-hello
// https://neo4j.com/docs/bolt/current/bolt/message/#messages-logon
if (scheme && strcmp(scheme, "basic")) {
if (scheme && strcmp(scheme, "basic") == 0) {
assert(username && password);
}

Expand Down

0 comments on commit 55de52e

Please sign in to comment.