Shared sniffer task Code Review Fix

Build has Dereference of pointer issue.