Skip to content

[#640]Fix Hash validation - #641

Merged
jesperpedersen merged 1 commit into
pgmoneta:mainfrom
jchrys:fix-verify-hash
May 26, 2025
Merged

jesperpedersen merged 1 commit into
pgmoneta:mainfrom
jchrys:fix-verify-hash

Conversation

@jchrys

@jchrys jchrys commented May 25, 2025

Copy link
Copy Markdown
Contributor

fixes #640

@jchrys jchrys changed the title [#640]Fix Hashvalidation [#640]Fix Hash validation May 25, 2025
@jchrys
jchrys force-pushed the fix-verify-hash branch from c438752 to d3a1ea2 Compare May 25, 2025 19:21
@jesperpedersen
jesperpedersen self-requested a review May 25, 2025 23:22
@jesperpedersen jesperpedersen added the bug Something isn't working label May 25, 2025
Comment thread src/libpgmoneta/verify.c Outdated
}

if (!strcmp(hash, calculated_hash))
if (strcmp(hash, calculated_hash))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets do != 0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure :D

@jesperpedersen

Copy link
Copy Markdown
Member

Cc: @shikharish

@jchrys
jchrys force-pushed the fix-verify-hash branch from d3a1ea2 to 7d9d5aa Compare May 26, 2025 01:33
@jesperpedersen
jesperpedersen merged commit 7d9d5aa into pgmoneta:main May 26, 2025
@jesperpedersen

Copy link
Copy Markdown
Member

Merged.

Thanks for your contribution !

@jchrys
jchrys deleted the fix-verify-hash branch May 26, 2025 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]hash mismatch logic

2 participants