mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 06:32:34 +02:00
2023-03-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCatchEvent::read()' that caused a segfault when processing a 'Reload Decks' operation. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
ad35505ddc
commit
a6b410567d
@ -24014,3 +24014,6 @@
|
|||||||
RPM package.
|
RPM package.
|
||||||
2023-03-17 Fred Gleason <fredg@paravelsystems.com>
|
2023-03-17 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Updated the copyright notices to use an interval of 2002-2023.
|
* Updated the copyright notices to use an interval of 2002-2023.
|
||||||
|
2023-03-20 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in 'RDCatchEvent::read()' that caused a segfault
|
||||||
|
when processing a 'Reload Decks' operation.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// A container class for a Rivendell Catch Event message.
|
// A container class for a Rivendell Catch Event message.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2022-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -370,15 +370,11 @@ bool RDCatchEvent::read(const QString &str)
|
|||||||
case RDCatchEvent::ReloadDecksOp:
|
case RDCatchEvent::ReloadDecksOp:
|
||||||
if(f0.size()!=4) {
|
if(f0.size()!=4) {
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
chan=f0.at(4).toInt(&ok);
|
|
||||||
if(ok&&(chan<255)) {
|
|
||||||
d_operation=op;
|
|
||||||
d_host_name=f0.at(1);
|
|
||||||
d_target_host_name=f0.at(3);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
break;
|
d_operation=op;
|
||||||
|
d_host_name=f0.at(1);
|
||||||
|
d_target_host_name=f0.at(3);
|
||||||
|
return true;
|
||||||
|
|
||||||
case RDCatchEvent::NullOp:
|
case RDCatchEvent::NullOp:
|
||||||
case RDCatchEvent::LastOp:
|
case RDCatchEvent::LastOp:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user