Avoid double-free when prepending Non-ESP marker.
authorTobias Brunner <tobias@strongswan.org>
Fri, 24 Feb 2012 12:04:16 +0000 (13:04 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Aug 2012 13:12:25 +0000 (15:12 +0200)
src/libcharon/network/sender.c

index c12941e..b3e8d29 100644 (file)
@@ -133,7 +133,7 @@ METHOD(sender_t, send_, void,
                /* NAT keepalives have no marker prepended */
                if (data.len != 1 || data.ptr[0] != 0xFF)
                {
-                       data = chunk_cat("cm", marker, data);
+                       data = chunk_cat("cc", marker, data);
                        packet->set_data(packet, data);
                }
        }