summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-10-17 15:42:40 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-10-17 15:42:40 +0200
commitf1a4d067be7113ac1418791fa0b0818800773418 (patch)
tree8703f48d969618932609af5e707f414d240d4e67 /channels.c
parentd5c46a4ad559c11ea7fac5c175dc5fbc413adc23 (diff)
downloadvdr-f1a4d067be7113ac1418791fa0b0818800773418.tar.gz
vdr-f1a4d067be7113ac1418791fa0b0818800773418.tar.bz2
Channel IDs are now checked when reading 'channels.conf' to avoid later problems with timers1.2.6pre1
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 69a5faef..69ff3c91 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.15 2003/10/03 15:12:59 kls Exp $
+ * $Id: channels.c 1.16 2003/10/17 15:42:40 kls Exp $
*/
#include "channels.h"
@@ -369,6 +369,10 @@ bool cChannel::Parse(const char *s, bool AllowNonUniqueID)
free(vpidbuf);
free(apidbuf);
free(namebuf);
+ if (!GetChannelID().Valid()) {
+ esyslog("ERROR: channel data results in invalid ID!");
+ return false;
+ }
if (!AllowNonUniqueID && Channels.GetByChannelID(GetChannelID())) {
esyslog("ERROR: channel data not unique!");
return false;