]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tls: Move variable sized tls_record_t struct to end of tls_t data
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 11:31:18 +0000 (13:31 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 16 May 2014 13:42:07 +0000 (15:42 +0200)
clang complains about the the non-last variable length member.

src/libtls/tls.c

index 6e295581433b5b2e9d57908d6751b886152a6f9e..6a8d5030c9376a42a57492eba7a5a259ceeaf3a7 100644 (file)
@@ -172,14 +172,14 @@ struct private_tls_t {
        size_t outpos;
 
        /**
-        * Partial TLS record header received
+        * Position in partially received record header
         */
-       tls_record_t head;
+       size_t headpos;
 
        /**
-        * Position in partially received record header
+        * Partial TLS record header received
         */
-       size_t headpos;
+       tls_record_t head;
 };
 
 /**