aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25thandclement.com> 2015-04-20 13:19:02 -0700
committerLibravatarLibravatar william <william@25thandclement.com> 2015-04-20 13:19:02 -0700
commit3a1ed42149c48c2dfdca86e0c730c1fa91f11324 (patch)
tree3a7ab9c78e043585f5bba7ec5c2875a9d5112f16 /src
parent23eafb649ad3e5a8fec499986ecafc453901548a (diff)
downloadluaossl-3a1ed42149c48c2dfdca86e0c730c1fa91f11324.tar.gz
luaossl-3a1ed42149c48c2dfdca86e0c730c1fa91f11324.tar.bz2
luaossl-3a1ed42149c48c2dfdca86e0c730c1fa91f11324.zip
add missing line continuation to LIST_INSERT_HEAD macro, and fix stale code comment
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 77cec55..5331501 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -111,7 +111,7 @@
LIST_NEXT((elm), field)->field.le_prev = (elm)->field.le_prev; \
*(elm)->field.le_prev = LIST_NEXT((elm), field); \
} while (0)
-#define LIST_INSERT_HEAD(head, elm, field) do {
+#define LIST_INSERT_HEAD(head, elm, field) do { \
if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field); \
LIST_FIRST((head)) = (elm); \
@@ -5150,7 +5150,7 @@ static int sx_setAlpnSelect_cb(SSL *ssl, const unsigned char **out, unsigned cha
*out = NULL;
*outlen = 0;
- /* always expect function (1st) and return string buffer (Nth) */
+ /* expect at least two values: return buffer and closure */
if ((n = ex_getdata(&L, EX_SSL_CTX_ALPN_SELECT_CB, ctx)) < 2)
return SSL_TLSEXT_ERR_ALERT_FATAL;