]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
13 years agoipv6: improve handling of packets with duplicate (or more) ipv6 extension headers.
Victor Julien [Fri, 13 Apr 2012 14:52:32 +0000 (16:52 +0200)] 
ipv6: improve handling of packets with duplicate (or more) ipv6 extension headers.

13 years agohttp: body inspection improvement
Victor Julien [Thu, 5 Apr 2012 16:33:03 +0000 (18:33 +0200)] 
http: body inspection improvement

Improve http_client_body and file_data performance when request and
response body limits are set to high values.

13 years agoAdd htp error debug printing.
Victor Julien [Wed, 11 Apr 2012 12:38:34 +0000 (14:38 +0200)] 
Add htp error debug printing.

13 years agoFlag napatech receive tm as well.
Victor Julien [Wed, 11 Apr 2012 11:50:08 +0000 (13:50 +0200)] 
Flag napatech receive tm as well.

13 years agoflag recieve acq tms that previously missed the receive_tm flag
Anoop Saldanha [Wed, 11 Apr 2012 10:58:40 +0000 (16:28 +0530)] 
flag recieve acq tms that previously missed the receive_tm flag

13 years agoMisc buffer API update.
Victor Julien [Wed, 11 Apr 2012 10:56:05 +0000 (12:56 +0200)] 
Misc buffer API update.

13 years agoreject pcre modifiers U with B
Eileen Donlon [Wed, 4 Apr 2012 14:43:01 +0000 (10:43 -0400)] 
reject pcre modifiers U with B

13 years agoallow only one content to use fast_pattern
Eileen Donlon [Mon, 2 Apr 2012 13:17:31 +0000 (09:17 -0400)] 
allow only one content to use fast_pattern

13 years agoAdd missing space to http.log.
Victor Julien [Tue, 10 Apr 2012 15:52:32 +0000 (17:52 +0200)] 
Add missing space to http.log.

13 years agoFix minor memleak in an start up error condition.
Victor Julien [Tue, 10 Apr 2012 15:47:02 +0000 (17:47 +0200)] 
Fix minor memleak in an start up error condition.

13 years agoIntroduce new buffer API that lets you create and manage a buffer. Update http log...
Anoop Saldanha [Thu, 5 Apr 2012 03:28:19 +0000 (08:58 +0530)] 
Introduce new buffer API that lets you create and manage a buffer. Update http log to use this as well

13 years agocsum function fixes. Improves alert accuracy. FPs on invalid-csums decoder rules...
Anoop Saldanha [Thu, 5 Apr 2012 15:15:38 +0000 (20:45 +0530)] 
csum function fixes. Improves alert accuracy. FPs on invalid-csums decoder rules fixed

13 years agominor code cleanup
Anoop Saldanha [Sat, 7 Apr 2012 04:33:19 +0000 (10:03 +0530)] 
minor code cleanup

13 years agoupdate handling negative offsets in byte_extract. Also improve validation in byte_ext...
Anoop Saldanha [Thu, 5 Apr 2012 19:07:16 +0000 (00:37 +0530)] 
update handling negative offsets in byte_extract. Also improve validation in byte_extract to not extract values out of the buffer range

13 years agohttp: improve multipart parsing, skip empty records.
Victor Julien [Thu, 5 Apr 2012 14:42:24 +0000 (16:42 +0200)] 
http: improve multipart parsing, skip empty records.

13 years agoUpdate Changelog for 1.3beta1 suricata-1.3beta1
Victor Julien [Wed, 4 Apr 2012 12:26:40 +0000 (14:26 +0200)] 
Update Changelog for 1.3beta1

13 years agoFix minor compiler warning.
Victor Julien [Wed, 4 Apr 2012 09:20:10 +0000 (11:20 +0200)] 
Fix minor compiler warning.

13 years agodefrag: don't increment recursion level for reassembled packets. Fixes defragged...
Victor Julien [Wed, 4 Apr 2012 09:18:15 +0000 (11:18 +0200)] 
defrag: don't increment recursion level for reassembled packets. Fixes defragged packets not seeing the same flow.

13 years agoUpdate the ERF file runmodes to support autofp and single.
Jason Ish [Wed, 28 Mar 2012 21:21:00 +0000 (15:21 -0600)] 
Update the ERF file runmodes to support autofp and single.

13 years agoApply changes recommended by Stephen Donnely of Endace: - Skip pad records. - Don...
Jason Ish [Thu, 29 Mar 2012 19:41:37 +0000 (13:41 -0600)] 
Apply changes recommended by Stephen Donnely of Endace: - Skip pad records. - Don't log error on EGAIN, just try again. - Skip over extension headers. - Check we have the full packet (skip partial packets) - Remove obsolete rlen check. Also remove max_pending_packets to process more packets per iteration.

13 years agoipv6: make sure we pass the defragged packet from the ipv6 layer to the decoder.
Victor Julien [Tue, 3 Apr 2012 18:18:08 +0000 (20:18 +0200)] 
ipv6: make sure we pass the defragged packet from the ipv6 layer to the decoder.

13 years agoFix error in proto handling for ipv6 in fast.log.
Victor Julien [Tue, 3 Apr 2012 12:57:13 +0000 (14:57 +0200)] 
Fix error in proto handling for ipv6 in fast.log.

13 years agoApply http.log formatting fix by Chris Wakelin.
Victor Julien [Mon, 2 Apr 2012 22:07:57 +0000 (00:07 +0200)] 
Apply http.log formatting fix by Chris Wakelin.

13 years agoFix error in per packet detection engine profiling.
Victor Julien [Mon, 2 Apr 2012 17:25:13 +0000 (19:25 +0200)] 
Fix error in per packet detection engine profiling.

13 years agoMinor stream optimization.
Victor Julien [Mon, 2 Apr 2012 17:16:01 +0000 (19:16 +0200)] 
Minor stream optimization.

13 years agoMake fast.log use finer grained locking, move protocol lookup outside of the lock.
Victor Julien [Mon, 2 Apr 2012 16:07:32 +0000 (18:07 +0200)] 
Make fast.log use finer grained locking, move protocol lookup outside of the lock.

13 years agoMinor optimizations to unified2 and fast.log.
Victor Julien [Mon, 2 Apr 2012 13:45:16 +0000 (15:45 +0200)] 
Minor optimizations to unified2 and fast.log.

13 years agoSmall compile fix.
Victor Julien [Mon, 2 Apr 2012 13:44:47 +0000 (15:44 +0200)] 
Small compile fix.

13 years agoupdate util-print.c to use new print macro
Anoop Saldanha [Fri, 30 Mar 2012 10:37:29 +0000 (16:07 +0530)] 
update util-print.c to use new print macro

13 years agoprovide generic macro to buffer data using snprintf
Anoop Saldanha [Fri, 30 Mar 2012 08:31:03 +0000 (14:01 +0530)] 
provide generic macro to buffer data using snprintf

13 years agoupdate util-print.c to use snprintf
Anoop Saldanha [Wed, 28 Mar 2012 19:34:41 +0000 (01:04 +0530)] 
update util-print.c to use snprintf

13 years agorestructure http logging to use fine grained locking
Anoop Saldanha [Wed, 28 Mar 2012 19:02:22 +0000 (00:32 +0530)] 
restructure http logging to use fine grained locking

13 years agoMinor unittest fixes to make Coverity happy.
Victor Julien [Fri, 30 Mar 2012 15:40:34 +0000 (17:40 +0200)] 
Minor unittest fixes to make Coverity happy.

13 years agoflow: add missing unlocks for rare error condition at flow shut down.
Victor Julien [Fri, 30 Mar 2012 13:09:04 +0000 (15:09 +0200)] 
flow: add missing unlocks for rare error condition at flow shut down.

13 years agohost: convert use_cnt to a atomic var (like in flow).
Victor Julien [Fri, 30 Mar 2012 12:47:45 +0000 (14:47 +0200)] 
host: convert use_cnt to a atomic var (like in flow).

13 years agoipv6: fix routing header parsing leading to rejection of valid packets.
Victor Julien [Fri, 30 Mar 2012 11:07:00 +0000 (13:07 +0200)] 
ipv6: fix routing header parsing leading to rejection of valid packets.

13 years agoipv6: properly deal with packets containing a FH header that has offset 0 and no...
Victor Julien [Fri, 30 Mar 2012 10:43:15 +0000 (12:43 +0200)] 
ipv6: properly deal with packets containing a FH header that has offset 0 and no more frags flag set.

13 years agoipv6: fix detection engine using the originals IPv6 header's nxt hdr value instead...
Victor Julien [Fri, 30 Mar 2012 09:26:02 +0000 (11:26 +0200)] 
ipv6: fix detection engine using the originals IPv6 header's nxt hdr value instead of the upper layer one.

13 years agoFix parsing of tcp-pkt and tcp-stream sigs, add unittest.
Victor Julien [Fri, 30 Mar 2012 08:09:03 +0000 (10:09 +0200)] 
Fix parsing of tcp-pkt and tcp-stream sigs, add unittest.

13 years agofix cppcheck analyzer warnings - bug 439
Anoop Saldanha [Thu, 29 Mar 2012 04:39:18 +0000 (10:09 +0530)] 
fix cppcheck analyzer warnings - bug 439

13 years agorestructure disabling receive threads. Introduce new flag to indicate that threads...
Anoop Saldanha [Wed, 28 Mar 2012 14:56:05 +0000 (20:26 +0530)] 
restructure disabling receive threads. Introduce new flag to indicate that threads have finised running

13 years agopcap: fix "work by luck" code.
Eric Leblond [Wed, 28 Mar 2012 15:19:05 +0000 (17:19 +0200)] 
pcap: fix "work by luck" code.

13 years agoaf_packet: misc improvements.
Eric Leblond [Thu, 29 Mar 2012 08:40:33 +0000 (10:40 +0200)] 
af_packet: misc improvements.

Improve block count and only copy snaplen length to avoid overflow.

13 years agoFix some minor clang scan-build warnings.
Victor Julien [Thu, 29 Mar 2012 11:33:16 +0000 (13:33 +0200)] 
Fix some minor clang scan-build warnings.

13 years agonfq: switch locking code to macro's to lock profiling can track the exact lock locations.
Victor Julien [Wed, 28 Mar 2012 16:59:26 +0000 (18:59 +0200)] 
nfq: switch locking code to macro's to lock profiling can track the exact lock locations.

13 years agoFix CUDA build from a release tarball.
Victor Julien [Wed, 28 Mar 2012 14:26:22 +0000 (16:26 +0200)] 
Fix CUDA build from a release tarball.

13 years agocleanup killing threads. As a consequence fixes invalid read/writes in tmqh flow
Anoop Saldanha [Wed, 28 Mar 2012 05:17:36 +0000 (10:47 +0530)] 
cleanup killing threads. As a consequence fixes invalid read/writes in tmqh flow

13 years agocleanup junk code in flow qh
Anoop Saldanha [Wed, 28 Mar 2012 04:13:05 +0000 (09:43 +0530)] 
cleanup junk code in flow qh

13 years agoFix misc issues picked up by coccinelle.
Victor Julien [Tue, 27 Mar 2012 15:05:39 +0000 (17:05 +0200)] 
Fix misc issues picked up by coccinelle.

13 years agofix compiler warnings
Anoop Saldanha [Tue, 27 Mar 2012 12:10:15 +0000 (17:40 +0530)] 
fix compiler warnings

13 years agoFix __WORDSIZE redeclaration warning on Windows builds.
Victor Julien [Tue, 27 Mar 2012 12:17:37 +0000 (14:17 +0200)] 
Fix __WORDSIZE redeclaration warning on Windows builds.

13 years agoImplement single, autofp and workers run modes for DAG interfaces. Includes multiple...
Jason Ish [Mon, 26 Mar 2012 17:58:24 +0000 (13:58 -0400)] 
Implement single, autofp and workers run modes for DAG interfaces. Includes multiple interface support.

Remove auto mode due to bad performance.

13 years agoFix compilation of atomic api spinlocked fallback code.
Victor Julien [Tue, 27 Mar 2012 11:26:04 +0000 (13:26 +0200)] 
Fix compilation of atomic api spinlocked fallback code.

13 years agoImprove check of min requirement for AF_PACKET.
Eric Leblond [Mon, 26 Mar 2012 16:57:42 +0000 (18:57 +0200)] 
Improve check of min requirement for AF_PACKET.

As pointed out by #416, AF_PACKET detection support was not accurate
enough. This patch improves the check by doing a verification of
the availability of the feature level needed to build AF_PACKET.
We need TPACKET_V2 which is available after 2.6.27.

13 years agocuda pb tm should be in a thread of its own + pkt_acq should be as free as possible
Anoop Saldanha [Fri, 23 Mar 2012 04:47:03 +0000 (10:17 +0530)] 
cuda pb tm should be in a thread of its own + pkt_acq should be as free as possible

13 years agob2g cuda up, compiling and running
Anoop Saldanha [Fri, 23 Mar 2012 03:18:10 +0000 (08:48 +0530)] 
b2g cuda up, compiling and running

13 years agoclean log pcap
Anoop Saldanha [Sun, 25 Mar 2012 07:14:56 +0000 (12:44 +0530)] 
clean log pcap

13 years agorestructure log pcap to use a different setup, which is resilient to thread failure...
Anoop Saldanha [Sun, 25 Mar 2012 06:39:30 +0000 (12:09 +0530)] 
restructure log pcap to use a different setup, which is resilient to thread failure/restarts

13 years agodon't return TM failure on failing to remove log file
Anoop Saldanha [Sun, 25 Mar 2012 05:43:44 +0000 (11:13 +0530)] 
don't return TM failure on failing to remove log file

13 years agoinit every new pf instance in log pcap
Anoop Saldanha [Sun, 25 Mar 2012 05:46:53 +0000 (11:16 +0530)] 
init every new pf instance in log pcap

13 years agohost: convert host hash to use lookup3.c
Victor Julien [Tue, 27 Mar 2012 08:38:15 +0000 (10:38 +0200)] 
host: convert host hash to use lookup3.c

13 years agoflow: make flow use lookup3.c hashing algorithm. Improves hash table distribution.
Victor Julien [Tue, 27 Mar 2012 08:05:51 +0000 (10:05 +0200)] 
flow: make flow use lookup3.c hashing algorithm. Improves hash table distribution.

13 years agohash: add lookup3.c by Bob Jenkins
Victor Julien [Tue, 27 Mar 2012 08:02:52 +0000 (10:02 +0200)] 
hash: add lookup3.c by Bob Jenkins

Found here:
http://burtleburtle.net/bob/hash/doobs.html
http://burtleburtle.net/bob/c/lookup3.c

From the file header:

lookup3.c, by Bob Jenkins, May 2006, Public Domain.

These are functions for producing 32-bit hashes for hash table lookup.
hashword(), hashlittle(), hashlittle2(), hashbig(), mix(), and final()
are externally useful functions.  Routines to test the hash are included
if SELF_TEST is defined.  You can use this free for any purpose.  It's in
the public domain.  It has no warranty.

13 years agoflow: create a flow lock macro API, implement it for mutex and rwlocks. Mutex remains...
Victor Julien [Sat, 24 Mar 2012 11:23:50 +0000 (12:23 +0100)] 
flow: create a flow lock macro API, implement it for mutex and rwlocks. Mutex remains the default.

13 years agoInclude conf_test in special cases for unset RUNMODE
Xavier Lange [Fri, 23 Mar 2012 08:30:13 +0000 (01:30 -0700)] 
Include conf_test in special cases for unset RUNMODE

13 years agoMake conf_test local. Simplify if/else to if.
Xavier Lange [Tue, 20 Mar 2012 21:02:49 +0000 (14:02 -0700)] 
Make conf_test local. Simplify if/else to if.

13 years agoDo not spawn threads for conf test
Xavier Lange [Mon, 19 Mar 2012 10:58:36 +0000 (03:58 -0700)] 
Do not spawn threads for conf test

13 years agoAdded conf_test flag and behavior
Xavier Lange [Mon, 19 Mar 2012 10:32:03 +0000 (03:32 -0700)] 
Added conf_test flag and behavior

13 years agofile magic: don't disable inspecting magic for both directions if files in only one...
Victor Julien [Thu, 22 Mar 2012 17:26:40 +0000 (18:26 +0100)] 
file magic: don't disable inspecting magic for both directions if files in only one direction don't need magic.

13 years agoAdd host section to stock yaml.
Victor Julien [Thu, 22 Mar 2012 16:02:41 +0000 (17:02 +0100)] 
Add host section to stock yaml.

13 years agoEnforce memcap limit before allocating hash table in host and flow engines.
Victor Julien [Thu, 22 Mar 2012 16:02:25 +0000 (17:02 +0100)] 
Enforce memcap limit before allocating hash table in host and flow engines.

13 years agoFix typo in spm prototype declaration.
Victor Julien [Thu, 22 Mar 2012 16:01:34 +0000 (17:01 +0100)] 
Fix typo in spm prototype declaration.

13 years agoupdate all spm algos to use 16 bit pattern lengths. Should compress a lot of tables
Anoop Saldanha [Thu, 22 Mar 2012 11:45:15 +0000 (17:15 +0530)] 
update all spm algos to use 16 bit pattern lengths. Should compress a lot of tables

13 years agoMake 'autofp' the default runmode. Increase default max-pending-packets to 1024....
Victor Julien [Thu, 22 Mar 2012 12:17:51 +0000 (13:17 +0100)] 
Make 'autofp' the default runmode. Increase default max-pending-packets to 1024. Move some advanced and uncommonly changed settings down in the stock suricata.yaml. Closes #433.

13 years agofix misleading comment
Eileen Donlon [Tue, 20 Mar 2012 15:02:21 +0000 (11:02 -0400)] 
fix misleading comment

13 years agoreject rules with invalid hex digits in content
Eileen Donlon [Tue, 20 Mar 2012 14:59:47 +0000 (10:59 -0400)] 
reject rules with invalid hex digits in content

13 years agoreject rules with an invalid ttl range
Eileen Donlon [Wed, 21 Mar 2012 16:12:38 +0000 (12:12 -0400)] 
reject rules with an invalid ttl range

13 years agoVarious small flow and host table fixes.
Victor Julien [Thu, 22 Mar 2012 10:53:35 +0000 (11:53 +0100)] 
Various small flow and host table fixes.

13 years agohttp: 'HTTP Host header ambiguous' after libhtp update. It now fires if hostname...
Victor Julien [Thu, 22 Mar 2012 11:40:49 +0000 (12:40 +0100)] 
http: 'HTTP Host header ambiguous' after libhtp update. It now fires if hostname is present both in URL and Host header and the 2 are not equal.

13 years agolibhtp: update to sync with upstream 0.2.x
Victor Julien [Thu, 22 Mar 2012 11:33:57 +0000 (12:33 +0100)] 
libhtp: update to sync with upstream 0.2.x

Patches applied are:

commit 85f5bbc39dda2eaf03ccb6111cbf5daf1c7b75f9
Author: Craig Forbes <cforbes@qualys.com>
Date:   Wed Mar 21 16:45:04 2012 +0000

    Backport of STREAM_STATE_TUNNEL fix to 0.2.x.

    Return STREAM_STATE_TUNNEL after entering a tunnel.

commit cfbe28cd4ddde6d77c5b0d5935c8717834971441
Author: Craig Forbes <cforbes@qualys.com>
Date:   Wed Feb 29 16:52:44 2012 +0000

    Backport of the fix for HTP_AMBIGUOUS_HOST flag.

    The flag is only set when the URI host on the request line is different
    than the value in the Host: request header.

    Resolves https://github.com/ironbee/libhtp/issues/20

commit 196dfb1c8b7a5996389c719e2c912163c5607916
Author: Brian Rectanus <brectanus@qualys.com>
Date:   Wed Feb 8 08:35:46 2012 -0600

    Add missing function declaration in header.

commit 7878fec818167fcdf7c8c4852ac0dafa1ae445f1
Author: Brian Rectanus <brectanus@qualys.com>
Date:   Wed Feb 8 08:35:07 2012 -0600

    Revert part of previous patch, which was invalid.

commit bafef3d4cbfc307960677c6bd682ae195fe986cd
Author: Brian Rectanus <brectanus@qualys.com>
Date:   Wed Feb 8 08:36:06 2012 -0600

    Update version to next dev release.

commit 62cfdb41ba84f2666c7526e2e5d9e10ab8e220f1
Author: William Metcalf <wmetcalf@qualys.com>
Date:   Wed Feb 1 13:19:48 2012 -0600

Many thanks to Will, Brian and Craig.

13 years agoBail out early if we're in http tunnel mode.
Victor Julien [Tue, 20 Mar 2012 11:55:45 +0000 (12:55 +0100)] 
Bail out early if we're in http tunnel mode.

13 years agoSilence ac-gfbs debug message.
Victor Julien [Tue, 20 Mar 2012 09:46:38 +0000 (10:46 +0100)] 
Silence ac-gfbs debug message.

13 years agoMinor error message cleanups
Victor Julien [Tue, 20 Mar 2012 09:15:02 +0000 (10:15 +0100)] 
Minor error message cleanups

13 years agoprofiling: fix lock profiling int print issue.
Victor Julien [Tue, 20 Mar 2012 09:14:43 +0000 (10:14 +0100)] 
profiling: fix lock profiling int print issue.

13 years agoflow: fix atomic var not being initialized and destroyed.
Victor Julien [Tue, 20 Mar 2012 09:13:52 +0000 (10:13 +0100)] 
flow: fix atomic var not being initialized and destroyed.

13 years agoFix bug in app layer event handling causing http event rules to fail loading.
Victor Julien [Mon, 19 Mar 2012 12:46:47 +0000 (13:46 +0100)] 
Fix bug in app layer event handling causing http event rules to fail loading.

13 years agoMinor flowq updates.
Victor Julien [Wed, 14 Mar 2012 12:32:40 +0000 (13:32 +0100)] 
Minor flowq updates.

13 years agoIntroduce the address hash based flow q handler
Anoop Saldanha [Mon, 12 Mar 2012 14:47:03 +0000 (20:17 +0530)] 
Introduce the address hash based flow q handler

13 years agoAdapt flow tmqh counters to be atomic vars. Remove support for active flows q handler...
Anoop Saldanha [Mon, 12 Mar 2012 14:18:49 +0000 (19:48 +0530)] 
Adapt flow tmqh counters to be atomic vars. Remove support for active flows q handler. Introduce SC_ATOMIC_SET

13 years agoSupport freeing flow q handler out ctx. Adapt unittests to use the same
Anoop Saldanha [Thu, 12 Jan 2012 11:23:02 +0000 (16:53 +0530)] 
Support freeing flow q handler out ctx. Adapt unittests to use the same

13 years agoneaten flow q handler code
Anoop Saldanha [Thu, 12 Jan 2012 11:09:47 +0000 (16:39 +0530)] 
neaten flow q handler code

13 years agoEnable unittests for flow q handler
Anoop Saldanha [Thu, 12 Jan 2012 11:01:08 +0000 (16:31 +0530)] 
Enable unittests for flow q handler

13 years agosupport flow q handler schedulers active_flows and active_packets. Support new yaml...
Anoop Saldanha [Wed, 11 Jan 2012 18:33:13 +0000 (00:03 +0530)] 
support flow q handler schedulers active_flows and active_packets. Support new yaml option autofp_scheduler. Support for printing q handler stats as well

13 years agosupport for custom flow qhandlers - round robin support added
Anoop Saldanha [Tue, 27 Dec 2011 12:26:13 +0000 (17:56 +0530)] 
support for custom flow qhandlers - round robin support added

13 years agoTLS: add variable to store the error code in the decoder
Pierre Chifflier [Tue, 13 Mar 2012 21:08:39 +0000 (22:08 +0100)] 
TLS: add variable to store the error code in the decoder

Use a variable to store the decoding error code if required, and remove
the calls to SCLogInfo and SCLogDebug.

13 years agoTLS app layer: misc fixes, reorder some fields to same memory
Pierre Chifflier [Sat, 3 Mar 2012 13:11:38 +0000 (14:11 +0100)] 
TLS app layer: misc fixes, reorder some fields to same memory

13 years agoAdd TLS decode events
Pierre Chifflier [Tue, 28 Feb 2012 14:08:43 +0000 (15:08 +0100)] 
Add TLS decode events

13 years agoTLS: replace SigMatchAppendAppLayer with SigMatchAppendSMToList
Pierre Chifflier [Mon, 27 Feb 2012 16:23:24 +0000 (17:23 +0100)] 
TLS: replace SigMatchAppendAppLayer with SigMatchAppendSMToList

13 years agotls-handshake: add sanity checks.
Eric Leblond [Mon, 19 Dec 2011 10:14:21 +0000 (11:14 +0100)] 
tls-handshake: add sanity checks.

13 years agotls-handshake: Add some missing free in error handling.
Eric Leblond [Mon, 19 Dec 2011 09:22:06 +0000 (10:22 +0100)] 
tls-handshake: Add some missing free in error handling.

When DecodeAsn1BuildValue function fails, it may be necessary to
do some clean-up in the calling functions.