Was testing dynamic_cast input for NULL after the fact, should have been
testing the output to include NULL from cast error as well as NULL input.
/*
- * $Id: auth_basic.cc,v 1.49 2007/08/01 23:12:33 amosjeffries Exp $
+ * $Id: auth_basic.cc,v 1.50 2007/08/02 04:15:26 amosjeffries Exp $
*
* DEBUG: section 29 Authenticator
* AUTHOR: Duane Wessels
AuthBasicUserRequest::authenticated() const
{
BasicUser const *basic_auth = dynamic_cast<BasicUser const *>(user());
- assert (user());
+ assert (basic_auth != NULL);
if (basic_auth->authenticated())
return 1;