value-pairs: Fix a heavy memory leak

Due to a cherry pick that went wrong, when value-pairs was splitting up
the dot-notation into components, each component was mistakenly
strdup()'d twice. The fix was to remove the stray duplication, that
should have been removed when resolving the cherry-pick conflict.

This closes #183.

Reported-by: Fabien Wernli
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
configure.ac: Improved the linux capability check

The Linux capabilities check was dependent only on the existence of
<sys/capability.h>. While there was a check performed for -lcap and its
usability, if that check failed, linux capability support was never
turned off.

This caused problems on recent FreeBSDs, where the header exists, but -
naturally - the library does not. This patch fixes #175, by modifying
the check to turn off the feature if the library is not available.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
configure.ac: Fix --enable-linux-caps

While fixing the auto-detection of Linux capabilities,
--enable-linux-caps got broken. This patch corrects that, so that both
work now.

Reported-by: Peter Czanik <czanik@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
dbparser: Update XML version to 4 in pdbtool merge

When merging patterndb files, output patterndb version 4 XML. This
partially addresses #109.

Requested-by: Fabien Wernli
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Preparations for syslog-ng 3.5.6

Bumped the version in VERSION, and added release notes to NEWS.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
NEWS: Fix a few typos

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
lib/Makefile.am: Change how libsyslog-ng.so is versioned

Instead of using the current VERSION for the soname of the library, use
the first two parts of it as a library major version, and then use
libtool's versioning scheme. Comments explaining how that works were
added to lib/Makefile.am. This fixes #190.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Merge pull request #191 from algernon/f/3.6/library-versioning

lib/Makefile.am: Change how libsyslog-ng.so is versioned
Merge tag 'v3.5.6' into 3.6/master

syslog-ng 3.5.6 release
NEWS.md: Fix a thinko

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Preparations for syslog-ng 3.6.0alpha2

Bumped the version in VERSION, and added noteworthy changes to NEWS.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>