mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2023-11-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in ripcd(8) that could cause a segfault when processing a null password in the 'Login' ['LO'] RML. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -249,6 +249,7 @@ void MainObject::RunLocalMacros(RDMacro *rml_in)
|
||||
RDMatrix::GpioType gpio_type;
|
||||
QByteArray data;
|
||||
int err;
|
||||
QString password="";
|
||||
|
||||
rda->syslog(LOG_INFO,"received rml: \"%s\" from %s",
|
||||
(const char *)rml_in->toString().toUtf8(),
|
||||
@@ -577,7 +578,11 @@ void MainObject::RunLocalMacros(RDMacro *rml_in)
|
||||
delete rduser;
|
||||
return;
|
||||
}
|
||||
if(!rduser->checkPassword(rml.arg(1),false)) {
|
||||
for(int i=1;i<rml.argQuantity();i++) {
|
||||
password+=rml.arg(i)+" ";
|
||||
}
|
||||
password=password.left(password.length()-1);
|
||||
if(!rduser->checkPassword(password,false)) {
|
||||
if(rml.echoRequested()) {
|
||||
rml.acknowledge(false);
|
||||
sendRml(&rml);
|
||||
|
Reference in New Issue
Block a user