From: Martin Willi Date: Thu, 8 May 2014 11:31:18 +0000 (+0200) Subject: tls: Move variable sized tls_record_t struct to end of tls_t data X-Git-Tag: 5.2.0dr5~39^2~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e2bf45a491536ab93c2b2ce1244690982ac728cf;p=thirdparty%2Fstrongswan.git tls: Move variable sized tls_record_t struct to end of tls_t data clang complains about the the non-last variable length member. --- diff --git a/src/libtls/tls.c b/src/libtls/tls.c index 6e29558143..6a8d5030c9 100644 --- a/src/libtls/tls.c +++ b/src/libtls/tls.c @@ -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; }; /**