Skip to content

Commit 067b345

Browse files
authored
Merge pull request ChuckBell#177 from Pablo2048/master
Bugfix - missing return statements
2 parents d007607 + da48660 commit 067b345

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MySQL_Encrypt_Sha1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ void Encrypt_SHA1::addUncounted(uint8_t data) {
8686
size_t Encrypt_SHA1::write(uint8_t data) {
8787
++byteCount;
8888
addUncounted(data);
89+
return 1;
8990
}
9091

9192
size_t Encrypt_SHA1::write(uint8_t* data, int length) {
9293
for (int i=0; i<length; i++) {
9394
write(data[i]);
9495
}
96+
return length;
9597
}
9698

9799
void Encrypt_SHA1::pad() {

0 commit comments

Comments
 (0)