aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/sec.cpp
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2008-03-25 23:50:09 +0000
committerAndreas Oberritter <obi@opendreambox.org>2008-03-25 23:50:09 +0000
commite20b7ae7457cc6016f57cb66be2652afb72eb14d (patch)
tree92509dac8140d4c2b55195d32fa3a4bfad888a0e /lib/dvb/sec.cpp
parentee34a458cc9a6decd919186367324543fc71e509 (diff)
downloadenigma2-e20b7ae7457cc6016f57cb66be2652afb72eb14d.tar.gz
enigma2-e20b7ae7457cc6016f57cb66be2652afb72eb14d.zip
fix: diseqc.eDVBDiseqcCommand::data[n] is used uninitialized in this function
Diffstat (limited to 'lib/dvb/sec.cpp')
-rw-r--r--lib/dvb/sec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp
index 655f64fc..1e75d113 100644
--- a/lib/dvb/sec.cpp
+++ b/lib/dvb/sec.cpp
@@ -550,6 +550,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
for ( int i = 0; i < loops;) // fill commands...
{
eDVBDiseqcCommand diseqc;
+ memset(diseqc.data, 0, MAX_DISEQC_LENGTH);
diseqc.len = 4;
diseqc.data[0] = i ? 0xE1 : 0xE0;
diseqc.data[1] = 0x10;
@@ -637,6 +638,7 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, m_params[DELAY_BETWEEN_SWITCH_AND_MOTOR_CMD]) ); // wait 700ms when diseqc changed
eDVBDiseqcCommand diseqc;
+ memset(diseqc.data, 0, MAX_DISEQC_LENGTH);
diseqc.len = 3;
diseqc.data[0] = 0xE0;
diseqc.data[1] = 0x31; // positioner