]> git.tuebingen.mpg.de Git - paraslash.git/commit
client: Fix has_feature().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 9 May 2023 17:42:21 +0000 (19:42 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 14 May 2023 14:32:56 +0000 (16:32 +0200)
commit84eff8315955e1a6da8c3d15fa6c18203d55aa4a
tree86e62e72f7ec8f8375f5d135c93d26607300ba4e
parent6e3e710015b0b2c208b80a91d5f7842482359db2
client: Fix has_feature().

The function returns bool, so a return value of zero is regarded as
false. Consequently, server feature #0 (sha256) is not detected even
if it is announced by the server, and therefore the client does not
request it. Hence both sides fall back to sha1.

This bug was introduced in paraslash-0.7.2.

Fixes: a0707daa23f8706326aa837f969c20d3e4ee02aa
client_common.c