]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Fixed bug I overlooked where PIPE wasn't deleted when the user logs out
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Wed, 24 May 2006 14:39:44 +0000 (14:39 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Wed, 24 May 2006 14:39:44 +0000 (14:39 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@139 e36fee2c-cc09-0410-a7cc-ebac5c6737de

phpconf/inc/captiveportal.inc

index a6ec6b002e822d589108792068d41cfb0de64389..c08693c52edd17ce27157d39bb066d04cf2d7003 100644 (file)
@@ -533,8 +533,8 @@ function captiveportal_disconnect($dbent, $radiusservers,$term_cause = 1,$stop_t
      * We could get an error if the pipe doesn't exist but everything should still be fine
      */
     if (isset($config['captiveportal']['peruserbw'])) {
-        mwexec("/sbin/ipfw pipe delete " . ($dbent[1]+40500));
-        mwexec("/sbin/ipfw pipe delete " . ($dbent[1]+45500));
+        mwexec("/sbin/ipfw pipe " . ($dbent[1]+40500) . " delete");
+        mwexec("/sbin/ipfw pipe " . ($dbent[1]+45500) . " delete");
     }
 }