Don't try to encode IP addresses as UTF-8

This commit is contained in:
Kim Alvefur 2014-06-08 12:47:58 +02:00
parent c276e9ff60
commit b83d2c6a91

View File

@ -262,7 +262,7 @@ int meth_extensions(lua_State* L)
case GEN_IPADD: case GEN_IPADD:
lua_pushstring(L, "iPAddress"); lua_pushstring(L, "iPAddress");
push_subtable(L, -2); push_subtable(L, -2);
push_asn1_string(L, general_name->d.iPAddress, px->encode); push_asn1_string(L, general_name->d.iPAddress, LSEC_AI5_STRING);
lua_rawseti(L, -2, lua_rawlen(L, -2)+1); lua_rawseti(L, -2, lua_rawlen(L, -2)+1);
lua_pop(L, 1); lua_pop(L, 1);
break; break;