Tcl command "ns_http queue $method $url" causes access violation in Aolserver 4.0 beta 4 - note missing headers parameter in the command. The access violation is due to variable hdrs left uninitialized in the following block of code
line 126: case HQueueIdx: if (objc < 4 || objc > 6) { Tcl_WrongNumArgs(interp, 2, objv, "method url ?body? ?headers?"); return TCL_ERROR; }
method = Tcl_GetString(objv[2]); url = Tcl_GetString(objv[3]);
if (objc > 4) { body = Tcl_GetString(objv[4]);
if (objc > 5) { if (Ns_TclGetSet2(interp, Tcl_GetString(objv[5]), &hdrs) != TCL_OK) { return TCL_ERROR; } } else { hdrs = NULL; } } else { body = NULL; }
Last else block needs "hdrs=NULL;" statement.
-- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/