mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 20:04:24 -04:00
Merge pull request #1193 from csoler/v0.6-SecurityFixes
ignore unknown ptags in certificates instead of causing an error, for…
This commit is contained in:
commit
05613a25bd
1 changed files with 3 additions and 2 deletions
|
@ -360,8 +360,9 @@ bool RsCertificate::initFromString(const std::string& instr,uint32_t& err_code)
|
||||||
}
|
}
|
||||||
break ;
|
break ;
|
||||||
default:
|
default:
|
||||||
err_code = CERTIFICATE_PARSING_ERROR_UNKNOWN_SECTION_PTAG ;
|
std::cerr << "(WW) unknwown PTAG 0x" << std::hex << ptag << std::dec << " in certificate! Ignoring it." << std::endl;
|
||||||
return false ;
|
buf = &buf[s] ;
|
||||||
|
break ;
|
||||||
}
|
}
|
||||||
|
|
||||||
total_s += s ;
|
total_s += s ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue