diff options
-rw-r--r-- | CONTRIBUTORS | 3 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | config.c | 8 |
3 files changed, 10 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 7969a3ef..05b8657e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1937,3 +1937,6 @@ Anssi Hannula <anssi.hannula@gmail.com> Antti Hartikainen <ami+vdr@ah.fi> for updating 'S13E' in 'sources.conf' + +Patrick Maier <maierp@informatik.tu-muenchen.de> + for fixing handling network masks in the svdrphosts.conf file @@ -4818,3 +4818,5 @@ Video Disk Recorder Revision History true. - Newlines in title and short text of an EPG event are now changed into blanks only after all other fixes, because a short text might become a description. +- Fixed handling network masks in the svdrphosts.conf file (thanks to Patrick + Maier). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.145 2006/04/17 11:00:00 kls Exp $ + * $Id: config.c 1.146 2006/07/22 11:57:51 kls Exp $ */ #include "config.h" @@ -106,8 +106,10 @@ bool cSVDRPhost::Parse(const char *s) *(char *)p = 0; // yes, we know it's 'const' - will be restored! if (m == 0) mask = 0; - else - mask >>= (32 - m); + else { + mask <<= (32 - m); + mask = htonl(mask); + } } int result = inet_aton(s, &addr); if (p) |