mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
BencodeParser: fixed parser failure due to the uninitialized variables
This commit is contained in:
parent
8311d6ef87
commit
7176107414
1 changed files with 3 additions and 0 deletions
|
@ -135,7 +135,10 @@ ssize_t BencodeParser::parseUpdate(const char* data, size_t size)
|
|||
if(rv < 0) {
|
||||
return rv;
|
||||
}
|
||||
strLength_ = 0;
|
||||
numConsumed_ = 0;
|
||||
runBeginCallback(STRUCT_DICT_KEY_T);
|
||||
currentState_ = BENCODE_STRING_LEN;
|
||||
// Fall through
|
||||
}
|
||||
case BENCODE_STRING_LEN: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue