library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// ERR_FAILURE if necessary pointers are unset
ERR_FAILURE if necessary pointers are unset
ERR_FAILURE if necessary pointers are unset
size_t BP_CheckWebAssessmentPointers(P_BP_WEB_ASSESSMENT assessment)
{
	for
	(
		assessment = assessment->first;
		assessment;
		assessment = assessment->next
	)
	{
		if (!assessment)
			return ERR_FAILURE;
		if
		(
				!assessment->baseAssessmentURL ||
				!assessment->session           ||
				!assessment->pageExtraction    ||
				!assessment->sqlChecks         ||
				!assessment->xssChecks         ||
				!assessment->first
		)
		{
			return ERR_FAILURE;
		}
	}
	return ERR_SUCCESS;
}
size_t BP_CheckWebAssessmentPointers ( P_BP_WEB_ASSESSMENT assessment ) { for ( assessment = assessment -> first ; assessment ; assessment = assessment -> next ) { if ( ! assessment ) return ERR_FAILURE ; if ( ! assessment -> baseAssessmentURL || ! assessment -> session || ! assessment -> pageExtraction || ! assessment -> sqlChecks || ! assessment -> xssChecks || ! assessment -> first ) { return ERR_FAILURE ; } } return ERR_SUCCESS ; }
ERR_FAILURE if necessary pointers are unset
ERR_FAILURE if necessary pointers are unset
// ensure we have an assessment // check pointers // return indicating failure // return indicating success