Hello there list,

I was giving a try to the nsssl module and found a
small bug when using the ns_ssl command, the cancel option specifically.
According to the code, the syntax should be 'ns_ssl
cancel id' , but even though I am using the right syntax the call
returns an error complaining about wrong syntax. I just went to the
code and saw that when using the cancel option the code checks or
expects to have 1 argument; when it should expect 2 (cancel option
itself plus the request id).

So here you have the small patch.

diff -r a2d7f6bf1f1f nsssl.c
--- a/nsssl.c   Fri Nov 07 20:42:14 2008 +0000
+++ b/nsssl.c   Mon Sep 13 11:50:53 2010 +0200
@@ -844,7 +844,7 @@ SSLObjCmd(ClientData arg, Tcl_Interp *in
     }

     case HCancelIdx:
-        if (objc != 2) {
+        if (objc != 3) {
             Tcl_WrongNumArgs(interp, 2, objv, "id");
             return TCL_ERROR;
         }


Maybe someone could please checkt it.
Thanks in advance.

Best,
-- 
-vg

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to