Index: customerror.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/customerror/customerror.module,v
retrieving revision 1.17.2.4
diff -u -r1.17.2.4 customerror.module
--- customerror.module	6 Oct 2008 01:03:09 -0000	1.17.2.4
+++ customerror.module	8 Mar 2009 00:20:49 -0000
@@ -152,10 +152,10 @@
  */
 function customerror_page() {
   $code = arg(1);
-  $_SESSION['destination'] = $_REQUEST['destination'];
 
   switch($code) {
     case 403:
+      $_SESSION['destination'] = $_REQUEST['destination'];
     case 404:
       customerror_check_redirect();
       drupal_set_title(variable_get('customerror_'. $code .'_title', _customerror_fetch_error($code)));

