summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilliam <william@25thandclement.com>2015-04-20 13:19:02 -0700
committerwilliam <william@25thandclement.com>2015-04-20 13:19:02 -0700
commit3a1ed42149c48c2dfdca86e0c730c1fa91f11324 (patch)
tree3a7ab9c78e043585f5bba7ec5c2875a9d5112f16
parent23eafb649ad3e5a8fec499986ecafc453901548a (diff)
downloadluaossl-exdata.tar.gz
luaossl-exdata.tar.bz2
luaossl-exdata.zip
add missing line continuation to LIST_INSERT_HEAD macro, and fix stale code commentexdata
-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 @@
111 LIST_NEXT((elm), field)->field.le_prev = (elm)->field.le_prev; \ 111 LIST_NEXT((elm), field)->field.le_prev = (elm)->field.le_prev; \
112 *(elm)->field.le_prev = LIST_NEXT((elm), field); \ 112 *(elm)->field.le_prev = LIST_NEXT((elm), field); \
113} while (0) 113} while (0)
114#define LIST_INSERT_HEAD(head, elm, field) do { 114#define LIST_INSERT_HEAD(head, elm, field) do { \
115 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \ 115 if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL) \
116 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field); \ 116 LIST_FIRST((head))->field.le_prev = &LIST_NEXT((elm), field); \
117 LIST_FIRST((head)) = (elm); \ 117 LIST_FIRST((head)) = (elm); \
@@ -5150,7 +5150,7 @@ static int sx_setAlpnSelect_cb(SSL *ssl, const unsigned char **out, unsigned cha
5150 *out = NULL; 5150 *out = NULL;
5151 *outlen = 0; 5151 *outlen = 0;
5152 5152
5153 /* always expect function (1st) and return string buffer (Nth) */ 5153 /* expect at least two values: return buffer and closure */
5154 if ((n = ex_getdata(&L, EX_SSL_CTX_ALPN_SELECT_CB, ctx)) < 2) 5154 if ((n = ex_getdata(&L, EX_SSL_CTX_ALPN_SELECT_CB, ctx)) < 2)
5155 return SSL_TLSEXT_ERR_ALERT_FATAL; 5155 return SSL_TLSEXT_ERR_ALERT_FATAL;
5156 5156