Skip to content

Commit 86d14e1

Browse files
Jerald FitzjeraldJunio C Hamano
authored andcommitted
decode_85(): fix missing return.
When the function detected an invalid base85 sequence, it issued an error message but forgot to return error status at that point and kept going. Signed-off-by: Jerald Fitzjerald <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 192a6be commit 86d14e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base85.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int decode_85(char *dst, const char *buffer, int len)
6666
*/
6767
if (0x03030303 < acc ||
6868
0xffffffff - de < (acc *= 85))
69-
error("invalid base85 sequence %.5s", buffer-5);
69+
return error("invalid base85 sequence %.5s", buffer-5);
7070
acc += de;
7171
say1(" %08x", acc);
7272

0 commit comments

Comments
 (0)