Insert subject entries into the correct table in the cert

Fri, 05 Nov 2010 02:22:20 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 05 Nov 2010 02:22:20 +0000
changeset 10
a4a1fd8c1b43
parent 9
bb7e0d7a0a08
child 11
8d7698d3fd26

Insert subject entries into the correct table in the cert

src/ssl.c file | annotate | diff | comparison | revisions
--- a/src/ssl.c	Fri Nov 05 02:21:55 2010 +0000
+++ b/src/ssl.c	Fri Nov 05 02:22:20 2010 +0000
@@ -432,7 +432,7 @@
         lua_newtable(L);
         lua_pushvalue(L, -2); /* k */
         lua_pushvalue(L, -2); /* v */
-        lua_settable(L, -6); /* ret.subject[k] = v */
+        lua_settable(L, -5); /* ret.subject[k] = v */
         /* Get short/long name of the entry */
         len = OBJ_obj2txt(buffer, sizeof(buffer), object, 0);
         lua_pushlstring(L, buffer, (len>sizeof(buffer))?sizeof(buffer):(len));

mercurial