Index: mollom.module
===================================================================
--- mollom.module	(revision 2853)
+++ mollom.module	(working copy)
@@ -790,7 +790,7 @@
           watchdog('mollom', 'Incorrect CAPTCHA');
  
           // Generate a new CAPTCHA:
-          $GLOBALS['mollom_captcha'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
+          $GLOBALS['mollom_response'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address(), 'session_id' => $_POST['session-id']));
         }
         else {
           watchdog('mollom', 'Correct CAPTCHA');
@@ -804,14 +804,14 @@
       form_set_error('captcha', t('The CAPTCHA field is required.'));
       
       // Generate a new CAPTCHA:
-      $GLOBALS['mollom_captcha'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
+      $GLOBALS['mollom_response'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
     }
   }
   else {
     form_set_error('captcha', t('The form data has been altered, the session-id field is required.'));
 
     // Generate a new CAPTCHA:
-    $GLOBALS['mollom_captcha'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
+    $GLOBALS['mollom_response'] = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
   }
 }
 
@@ -825,7 +825,7 @@
     $captcha = TRUE;
   }
   else if ($mode == MOLLOM_MODE_CAPTCHA) {
-    $response = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address()));
+    $response = mollom('mollom.getImageCaptcha', array('author_ip' => _mollom_ip_address(), 'session_id' => $response['session_id']));
     $captcha = TRUE;
   }
 
