diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c index f9ff4d5..562927d 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -4544,8 +4544,8 @@ static int sx_setAlpnProtos(lua_State *L) { | |||
4544 | } | 4544 | } |
4545 | done: | 4545 | done: |
4546 | luaL_pushresult(&B); | 4546 | luaL_pushresult(&B); |
4547 | 4547 | tmp = lua_tolstring(L, -1, &len); | |
4548 | if (0 != SSL_CTX_set_alpn_protos(ctx, (const unsigned char*)lua_tostring(L, -1), protos_len)) { | 4548 | if (0 != SSL_CTX_set_alpn_protos(ctx, (const unsigned char*)tmp, len)) { |
4549 | lua_pushnil(L); | 4549 | lua_pushnil(L); |
4550 | return 1; | 4550 | return 1; |
4551 | } | 4551 | } |