Skip to contentSkip to conversation

conga/ricci/ricci Ricci.cpp

Cluster-devel [email protected] 1 participant 1 message Jul 12, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-07-12 18:46:08

Modified files:
ricci/ricci : Ricci.cpp

Log message:
ricci: 'unauthenticate' function should always succeed

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Ricci.cpp.diff?cvsroot=cluster&r1=1.12&r2=1.13

ricci/ricci/Ricci.cpp +5 -3
@@ -152,13 +152,15 @@
   } else if (function == "unauthenticate") {
     if (!authenticated) {
       // not authenticated
-      success = RRC_NEED_AUTH;
+      //      success = RRC_NEED_AUTH;
+      // unauthenticate should always succeed
+      success = RRC_SUCCESS;
     } else {
       // authenticated
       resp = ricci_header(false);
       success = RRC_SUCCESS;
       remove_cert = true;
-    } // authenticated
+    }
     
   } else if (function == "list_modules") {
     // available modules
@@ -176,7 +178,7 @@
 	resp.add_child(x);
       }
       success = RRC_SUCCESS;
-    } // authenticated
+    }
     
   } else if (function == "process_batch") {