debug: Fix debug_parse_params
commitdd4c019d9ffaa5453e536c8aaaa8e03463dc2959
authorVolker Lendecke <vl@samba.org>
Tue, 29 Jul 2014 12:48:55 +0000 (29 12:48 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 31 Jul 2014 16:49:46 +0000 (31 18:49 +0200)
tree0f2c87f98e58dadb03e653a16595e7ffc350e47f
parent6c9be497a3f41824411fe2507b4183d764a5f58e
debug: Fix debug_parse_params

The additional check this patch removes potentially drops some debuglevel
class settings. While not documented, it is possible to add a debug class
like for example "tdb:10" multiple times with multiple values. Later
settings overwrite earlier ones, but only if the overall number of
settings does not exceed the total number of available debug classes.

This patch changes our behaviour, but I can't imagine a situation where
someone relies on this check.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/util/debug.c