mod_http: Use hostname from the correct context (thanks gryffus)
[prosody.git] / util-src / encodings.c
index 9b6c6cf4c2cf8d22a9937af55977954e8e706297..b9b6160a03809c2eb7b1c04a2622f0a90814592b 100644 (file)
@@ -146,7 +146,7 @@ static int icu_stringprep_prep(lua_State *L, const UStringPrepProfile *profile)
        }
        u_strFromUTF8(unprepped, 1024, &unprepped_len, input, input_len, &err);
        if (U_FAILURE(err)) {
-               luah_pushnil(L);
+               lua_pushnil(L);
                return 1;
        }
        prepped_len = usprep_prepare(profile, unprepped, unprepped_len, prepped, 1024, 0, NULL, &err);